Hi,
I think I need to understand how the "_all" field works when it comes to
analysis. I want to query against all field that are indexed, not just
specific ones, this is for a generic free text search against content.
I have created a stopword filter with just "the" and "and" in it.
I can query how the fields are analyzed and find that "the" is indeed
removed:
curl http://localhost:9200/content/_analyze?field=content -d "the"
{"tokens":[]}
But if I check how the _all field is analyzed:
curl http://localhost:9200/content/_analyze?field=_all -d "the"
{"tokens":[{"token":"the","start_offset":0,"end_offset":3,"type":"","position":1}]}
So when I query _all I get results that I don't want.
Here is the start of my mappings, as you can see I did not set anything on
_all.
{"content":{"mappings":{"business_rates_calculator":{
"dynamic":"false",
"properties":{
"businessTypes":{"type":"string","index":"not_analyzed"},
"content":{"type":"string","analyzer":"custom_english"},
...
How do I set up _all so that it is composed of all the fields that are
mapped, each analyzed by the analyzer configured on the field. I assumed
this is how _all would work by default, but clearly not.
Thanks for your assistance.
Rupert
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0cee71aa-891b-4f11-9e3d-8510ac34a5fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.