elasticsearch - Find nested documents by id -


elasticsearch has ids query find documents id. tried use in nested query:

{     "query": {         "nested": {            "path": "nestedfield",            "query": {"ids":{ "values": ["nesteddocumentid" ] }},            "inner_hits" : {}             }      } } 

but query looks @ parent document id, not @ nested.
can use ids query finding nested documents ids?

the id of nested documents automatically created , cannot control that.

the solution index id in nested document itslef regular field , terms filter instead of ids.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -