ElasticSearch nested object query

227 views Asked by At

I'm using Elasticsearch provided by JHipster. I have made relation between entities, but I can't search by field in relation.

Eg. My model looks like this:

[
  {
    "id": 0,
    "text": "",
    "content": "",
    "time": 0,
    "thumbnailUrl": "",
    "stepsGroup": {
      "id": 0,
      "title": "",
      "imgUrl": "",
      "groupOrder": 0
    }
  }
]

And I would like to search like this:

query = stepsGroup.id: whatever

But actually it doesn't work. What should I enter in query to search what I want.

0

There are 0 answers