Re: Strange behavior: same id in different types

2014-06-19 Thread Alexander Reelsen
Hey, your request is already ambigous. You specify a single ID, but expect two results to return, as you did not specify a type. However to identify a document in a unique fashion, you need the tuple of index/type/id, of which a type is missing here. So, either specify all three, or maybe elastic

Strange behavior: same id in different types

2014-06-18 Thread Hovsep Avakyan
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 sam