I using a query condition like this :
curl -XGET http://192.168.8.205:9200/dmall_order__order_consignee/union/_search?pretty -d '{
"query": { "bool": { "filter": { "term": { "wm_order__id": 356541713 } } } }
}'
I got three indices with a same id :
{
"took" : 136,
"timed_out" : false,
"_shards" : {
"total" : 3,
"successful" : 3,
"failed" : 0
},
"hits" : {
"total" : 3,
"max_score" : 0.0,
"hits" : [ {
"_index" : "dmall_order__order_consignee",
"_type" : "union",
"_id" : "13534356541713",
"_score" : 0.0,
"_source":{.......................
,"wm_order__id":356541713,
.....................
}, {
"_index" : "dmall_order__order_consignee",
"_type" : "union",
"_id" : "13534356541713",
"_score" : 0.0,
"_source":{......................
,"wm_order__id":356541713,
......................
}, {
"_index" : "dmall_order__order_consignee",
"_type" : "union",
"_id" : "13534356541713",
"_score" : 0.0,
"_source":{....................
"wm_order__id":356541713
......................
} ]
}
but I using the getting method like this :
curl -XGET http://192.168.8.205:9200/dmall_order__order_consignee/union/13534356541713
I got the only one result :
{"_index":"dmall_order__order_consignee","_type":"union","_id":"13534356541713","_version":1,"found":true,"_source":{.........................","wm_order__id":1356541713,..............................}
why there are three indices when I query with field 'wm_order__id' ?
Thanks.