Elasticsearch always returning “mapping type is missing”

Turns out this is happening because the mapping needs to be applied to the type:

I tried applying it to the wrong thing:

curl -XPUT 10.160.86.134:9200/products/_mapping -d '{

It needs to be applied to the type like so:

curl -XPUT 10.160.86.134:9200/products/product/_mapping -d '{

It’s sad that a simple google search couldn’t answer this. Also the previous post I linked to is very misleading and the answer is wrong, which I’ll point out there as well.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)