Indexing Attachment file to elastic search
I have typed this command to index a document in Elasticsearch create an index curl -X PUT "localhost:9200/test_idx_1x" create a mapping curl -X PUT "localhost:9200/test_idx_1x/test_mapping_1x/_mapping" -d '{ "test_mapping_1x": { "properties": { "my_attachments": { "type": "attachment" } } } }' index this document curl -XPUT 'http://localhost:9200/test_idx_1x/test_mapping_1x/4' -d '{ "post_date": "2009-11-15T14:12:12", "message": "test Elastic Search", "name": "N1" }' All these three commands are very goods. But when I type this command: curl -XPOST 'http://localhost:9200/test_idx_1x/test