Hi all! Im currently trying to use the inner_hits functionality that was added in elasticsearch 1.5. Unfortunately, elastic is throwing an ArrayOutOfBoundsException when running my query. I would be very grateful if someone can have a look and tell me what I am doing wrong, as I feel that I have followed the documentation correctly.
Example that produces the problem: curl -XPOST 'http://localhost:9200/twitter' curl -XPOST 'http://localhost:9200/twitter/_mapping/tweet' -d ' { "tweet": { "properties": { "comments": { "properties": { "messages": { "type": "nested", "properties": { "message": { "type" : "string", "index": "not_analyzed" } } } } } } } }' curl -XPOST 'http://localhost:9200/twitter/tweet' -d ' { "comments": { "messages": [ {"message": "Nice website"}, {"message": "Worst ever"} ] } }' curl -XGET 'http://localhost:9200/twitter/tweet/_search' -d ' { "query": { "nested": { "path": "comments.messages", "query": { "match": {"comments.messages.message": "Nice website"} }, "inner_hits" : {} } } }' Response: {"took":54,"timed_out":false,"_shards":{"total":5,"successful":4,"failed":1,"failures":[{"index":"twitter","shard":4,"status":500,"reason":"ArrayIndexOutOfBoundsException[-1]"}]},"hits":{"total":1,"max_score":1.4054651,"hits":[]}} Note that the query will work if I take "inner_hits" 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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/917e9889-6552-428d-a84c-1d3b0362bb93%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.