Just get back specific entries of an array?


(Sentient6) #1

Hallo dear all,

I have trouble with arrays in ElasticSearch.

I want to index a document of this structure:

{"trial" :
[
{
"title": "hallo",
"id": "5678",
"fulltext": "world"
},

  {
"title": "test",
"id": "1234",
"fulltext": "test" 
  }
]

}

After a query on my index I want to get back the whole entry where fulltext is: "test". But I get the whole array back.
Is there any possibility to get just a specific entry of the array?


(system) #2