Field missing in explicit mapping causes import error


(Matthew Bullock) #1

Hi i have explicitly defined a filed in my mapping to force it as a keyword.

I use the Bulk API to import the data

However some cases this field in not present in the imported data. This causes an import error and and the data is skipped even though the other fields contain data.

Is there a way of importing the rest of the data even though one field is missing from time to time.


(Tanguy) #2

Hi,

Can you please share the import error log with us? A missing field should not prevent the document to be indexed, but a value in the wrong datatype can (like indexing a string/text where a number is expected).

Also, you might be interested in the ignore_malformed setting:
https://www.elastic.co/guide/en/elasticsearch/reference/5.2/ignore-malformed.html


(system) #3

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