Try with adding ?routing=PARENTID where PARENTID is equal to the parent ID for a given child
HTH -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 10 janv. 2014 à 01:09, Yuri Panchenko <[email protected]> a écrit : Hi, I'm doing a simple test with 1.0.0 Beta 2. I've indexed a parent record and three children. The head plugin shows all the children, and the search endpoint returns all three children with different id's. But, for some strange reason, I can only GET by id one of the children. Does someone have a clue, or could this be a bug? curl -XGET localhost:9200/d3/transactions/_search?pretty { "took" : 2, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "failed" : 0 }, "hits" : { "total" : 3, "max_score" : 1.0, "hits" : [ { "_index" : "d3", "_type" : "transactions", "_id" : "3", "_score" : 1.0, "_source" : { "date" : "2012-12-01", "description" : "Nail polish", "amount" : 80.00} }, { "_index" : "d3", "_type" : "transactions", "_id" : "2", "_score" : 1.0, "_source" : { "date" : "2012-10-14", "description" : "Nail polish", "amount" : 70.00} }, { "_index" : "d3", "_type" : "transactions", "_id" : "1", "_score" : 1.0, "_source" : { "date" : "2013-01-01", "description" : "Nail polish", "amount" : 75.50} } ] } } curl -XGET localhost:9200/d3/transactions/1?pretty { "_index" : "d3", "_type" : "transactions", "_id" : "1", "_version" : 2, "exists" : true, "_source" : { "date" : "2013-01-01", "description" : "Nail polish", "amount" : 75.50} } curl -XGET localhost:9200/d3/transactions/2?pretty { "_index" : "d3", "_type" : "transactions", "_id" : "2", "exists" : false } curl -XGET localhost:9200/d3/transactions/3?pretty { "_index" : "d3", "_type" : "transactions", "_id" : "3", "exists" : false } -- 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/41376241-31ab-488a-bac8-19618cbc60be%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- 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/143F639E-7946-4F98-B003-B47FDD84F2C3%40pilato.fr. For more options, visit https://groups.google.com/groups/opt_out.
