How to cause queries to fail against an index when unmapped fields are referenced?

Hi folks,

Is there a method by which we can cause queries to fail against an index when unmapped fields are referenced?

I have noticed that, in the past, there was an ignore_unmapped option that worked, however support for this seems to have been dropped around ES version 5. Such an option would make it easy to find when fields have been misspelled or otherwise incorrectly referenced in queries. Such functionality would effectively be similar to the strict setting for indexing, whereby indexing on an unmapped field fails loudly.

As suggested in this issue on GitHub (elastic/elasticsearch#12016), it seems that this functionality is no longer available or at least no longer works.

Any help or pointers on the matter would be greatly appreciated.

1 Like

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