Hi !  I just started play with ES and noted some strange behavior: 

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"}'

As you can see, they have same id and placed in same index,but different 
types.
Ok, next I perform multi get request:

curl -XGET http://192.168.0.118:9200/test/_mget?pretty -d '{ids:["apple"]}'

Response:

{
  "docs" : [ {
    "_index" : "test",
    "_type" : "fruit",
    "_id" : "apple",
    "_version" : 1,
    "found" : true, "_source" : {data:"Just red apple"}
  } ]
}


As you can see only one document returned. Why not both? I find such 
behavior very ambiguous. I think if we request whole index, so all 
documents with given id should be returned regardless of type.

-- 
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/600e6174-036c-48dc-8c6d-2c31e9c9eccb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to