You are my hero, Clint! That worked.
Thanks for your patience with me.
Kevin
On Monday, August 27, 2012 9:48:59 AM UTC-7, Kevin Lawrence wrote:
Thanks Clint!
Trying that now.
Kevin
On Saturday, August 25, 2012 2:42:20 AM UTC-7, Clinton Gormley wrote:
Hi Kevin
I suspect it's a bit more complex than that. When I query the
_settings for my index after the restart, I still see my custom
analyzer but the analyzer is not used.The problem is not that the analyzer is disappearing - it's that you
have two fields called 'country' with different mappings.So after indexing, it is finding the keyword 'country' field first.
After restarting it is finding the analyzed 'country' field first.If you change your query to the following, you will see that it works
correctly:curl -XGET 'localhost:9200/clinical_trials/_search?pretty=true' -d '
{
"query" : {
"term" : { "brief_title" : "dermatitis" }
},
"filter" : {
"term" : { "location_countries.country" : "united states" }
},
"facets" : {
"tag" : {
"terms" : { "field" : "location_countries.country" }
}
}
}clint
--