Multi_match with no fields param try to match on not indexed fields, does it affect performance?


I've a query with a multi_match condition where I specify only the term and not the fields param

In the profile output I can see a lot of the followings:
(MatchNoDocsQuery(\"failed [attributes.gender] query, caused by illegal_argument_exception:[Cannot search on field [attributes.gender] since it is not indexed.]\")

And indeed in my mapping for the index I set that fields with index: false and the results are the ones expected

What I wonder about is if those exceptions affect query performances and I should rather "whitelist" all the indexed fields in the multi_match query via the field param

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