Term query vs match query

The match query analyzes the input string and constructs more basic queries
from that.

The term query matches exact terms.

If you have a document containing "CAT" and search for "cat" the match
query will find it but the term query won't. That is, if you lowercase in
your analysis config which it does by default.

On Mon, Nov 18, 2013 at 8:11 PM, Mohit Anchlia mohitanchlia@gmail.comwrote:

Could somebody help me understand the difference between a term query and
a match query? I saw the explanation on the elasticsearch site but couldn't
quite follow. Isn't search always trying to match terms?

--
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.
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

2 Likes