ElasticSearch accpeting all the fields as string

(Ayushbij27) #1

I tried to index a .csv file into elasticsearch and define manual mappings so that it does not read my date fields as string but when i am pushing the data into elasticsearch it is taking the default mapping and accepting all the fields as string. I am using esimport for pushing csv file data into the index created by me.

(David Pilato) #2

You need to define your mapping first before inserting the first document. If you did and if it still does not work, it's because you did something wrong.
If so, provide all the steps as described at About the Elasticsearch category

(system) closed #3