Yep, thanks for confirming my understanding, in the case of using term
queries on non-analyzed fields, the search value must match the exact case
of the original value if I understand this correctly.
Bob
On Jan 16, 2014, at 6:23 PM, Ivan Brusic
>
wrote:
Correction: meant to say use *term* queries
Correction: meant to say use *term* queries on non-analyzed fields, not
*text* queries.
On Thu, Jan 16, 2014 at 6:22 PM, Ivan Brusic wrote:
> Correct. A term query does not analyze the terms, while a match query
> does. Generally, you should use text queries on non-analyzed fields, and
> match
Correct. A term query does not analyze the terms, while a match query does.
Generally, you should use text queries on non-analyzed fields, and match
queries on analyzed ones. Analysis does not always mean lowercasing terms,
but that is what the default (standard) analyzer does. All these concepts
d
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
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
analyz