First I just indexed 2 documents: curl -XPUT http://192.168.0.118:9200/test/company/apple -d '{data:"Apple corp"}' curl -XPUT http://192.168.0.118:9200/test/fruit/apple -d '{data:"Just red apple"}'
According to example above we have test index with 2 documents (both with "apple" id) in different types. When we make curl -XGET http://192.168.0.118:9200/test/_mget?pretty -d '{ids:["apple","apple"]}' We see this: { "docs" : [ { "_index" : "test", "_type" : "fruit", "_id" : "apple", "_version" : 1, "found" : true, "_source" : {data:"Just red apple"} }, { "_index" : "test", "_type" : "fruit", "_id" : "apple", "_version" : 1, "found" : true, "_source" : {data:"Just red apple"} } ] } As you can see documents are duplicated. So if we request curl -XGET http://192.168.0.118:9200/test/_mget?pretty -d '{ids:["apple","apple","apple"]}' we will see 3 documents in result set and so on. I think the right way to resolve this issue is to ignore duplicate identificators in "ids" parameter. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/eb04cff0-e28a-453c-8ead-a7824a6e3073%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
