Since your search_analyzer is standard, it will tokenize your query string as standard (i.e. it will break it down), then it will match it against the path_hierarchy tokens in the index which will not match. Since you indexed as path_hierarchy and you want to search using an exact match, then you can either use terms, or use the same exact analyzer (path_hierarchy) at query time.
You can always do a bool query with the term part in 1 clause, and the query_string part in another clause if that's what you need. -- 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/016bf83e-7e2c-4900-9aa1-965b187b8060%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
