Filter by id in array and return only item with id, Elasticsearch 1.7 -
how filter offers array id field , return in results object searched id? current search correctly find data id in offers array returns objects it: get activities/activity/_search { "query": { "filtered": { "filter": { "bool": { "must": [ { "term": { "offers.id": "12" } } ] } } } } } current results, filter offers , "id": 12 : "hits": [ { "_index": "activities", "_type": "activity", "_id": "avtr4-uv81wmr8kfd246", "_score": null, "_source": { "offers": [ { "title": "merge", "id": 11 ...