This seemed to be the case! Using the mapping you suggested (below) which
made the other search and facet queries work the I wanted them to.
curl -XPUT localhost:9200/mtest
curl -X POST localhost:9200/mtest/dynamics/_mapping -d '
{
"dynamic":{
"dynamic_templates":[
{
"template_1":{
"match":"*",
"mapping":{
"type":"multi_field",
"fields":{
"{name}":{
"type":"string",
"index":"analyzed"
},
"org":{
"type":"string",
"index":"not_analyzed"
}
}
}
}
}
]
}
}'
Thanks, again, Binh.
Mahesh
On Tuesday, March 18, 2014 7:57:47 PM UTC-4, Binh Ly wrote:
>
> Just FYI, the dynamic mapping applies only to fields that you have no
> explicit mappings defined. In your case, you predefined field1 and field2
> as type string so the dynamic mapping will ignore those 2 fields and will
> not be applied to them. That is probably the cause of your query behaviors.
>
> If you remove field1 and field2 from your initial mapping, I think you
> should get what you are expecting.
>
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/e489a762-21b3-4aca-8d29-ed0199a095b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.