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

Hello,

I've a query with a multi_match condition where I specify only the term and not the fields param
{"profile":true,"from":0,"query":{"multi_match":{"query":"test"}},"size":10}

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.