Hi, Binh

I got it.

I did not notice the standard analyzer will also split "/". Thanks a lot.

Binh Ly於 2014年3月27日星期四UTC+8下午11時24分34秒寫道:
>
> 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/2b24274f-2cf6-4c47-876f-6d8c73542833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to