Ignore mapping Exceptions at searching time

(Ali Zadedehbalaei) #1

Elasticsearch by default throws an exception if searching data for a field which does not fit the existing type. For example, if a field has been created as number type, index a document with a string value for that field causes an error.
i know that Malformed fields are silently ignored at indexing time when ignore_malformed is turned on. but i want to ignore mapping Exceptions at searching time, Is this possible?

(Simon Willnauer) #2

some queries support lenient: true, what queries are you using?

(Ali Zadedehbalaei) #3

Match query, Range Query, Nested Query , ..

(Simon Willnauer) #4

for at least the match query you can set the lenient param.

(system) closed #5

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