Organizational Research By

Surprising Reserch Topic

Mapping for a elastic search with multiple types


I am trying to create one index with multiple types for each data source. The following mapping does create mapping for one type. curl -XPUT localhost:9200/test -d '{ "settings" : { "number_of_shards" : 1 }, "mappings" : { "type1" : { "_source" : { "enabled" : false }, "properties" : { "field1" : { "type" : "string", "index" : "not_analyzed" } } } }, "mappings" : { "type2" : { "_source" : { "enabled" : false }, "properties" : { "source1" : { "type" : "string", "index" : "not_analyzed" } } } } }'

When I run curl -X GET 'http://localhost:9200/test/tpe1/_mapping?pretty=true'

Nothing is displayed.

How do we create mapping for multiple types in elastic search?
asked Apr 15, 2015 in Elasticsearch-php by rajesh
0 votes
35 views



Related Hot Questions



Government Jobs Opening


...