22/01/2018 : The term query finds documents that contain the exact term specified in the inverted
index. In addition to the simple Query Term this query searches directly in the nested objects.
This will additional return a inner_hits Object that contains the Id's for the matched nested
terms.Example:
new QueryTerm()
.setTerm("searchField", "searchTerma","NestedObjectName", "idOfMatchedNestedObject")
.setIndex("foo")
.setType("FooBarDTO")
.setPageSize(10)
.setStartRecord(0)
.setExplain(false);
See also:
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/query-dsl-term-query.html