Oh I think I get it now, the analyzed value in the index is all lowercase and hence the exact match must be lowercase for an exact match using term query. When using match query, the term is first analyzed making it lowercase before doing the search, hence case insensitive. Am I right?
On Thursday, January 16, 2014, Bob <[email protected]> wrote: > I am just learning ES and would appreciate a quick explanation on analyzed > vs not analyzed searches. My basic understanding is that unless indicated > otherwise, fields are analyzed during indexing time but when it comes to > search time, a term query matches documents for terms that are not > analyzed, hence it must match exactly. I am not sure what that means > exactly because for one, the fields are already analyzed and tokenized > during indexing time, secondly, when I execute a term query, it only > matches in lowercase but with match or query_string queries, they are case > insensitive. Any insights will be much appreciated. > > Thanks, > Bob > > -- > You received this message because you are subscribed to a topic in the > Google Groups "elasticsearch" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/elasticsearch/Fs5ZN-JpCdo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected] <javascript:_e({}, 'cvml', > 'elasticsearch%[email protected]');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/65638a99-eda4-4d90-8913-fb89380e63ae%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/CAFANT4%2BetJ%3DmQZA1nB29v%3D%2BCfK%3DAOXCLtd1gmE7VTx-X7VRpDA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
