Match VS term Query on keyword datatype


#1

Hi All,

I know this sounds like a dumb question.

If I store a field with type as keyword, will it matter if I perform a match or term query to find exact matches. Will both of them work the same? If no, which one will give a better performance?

Thanks.


Term request with normalized keyword behave strangely
(Simon Willnauer) #2

it will result in the same query unless you are using a normalizer if you do the normalizer is only applied if you use match not if you use term. The term query will not perform any normalization.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.