3
TermsLookupQueryBuilder terms = QueryBuilders.termsLookupQuery("uuid")
.lookupIndex("bropen_framework_core_security_user").lookupType("user").lookupId("5")
.lookupPath("uuids");
HasChildQueryBuilder bookNameQuery = QueryBuilders.hasChildQuery("process",
QueryBuilders.hasChildQuery("permission", terms));
SearchResponse searchResponse1 = client
.prepareSearch()
//.addHighlightedField("_all")
.setQuery(hasChildQuery)
.setPostFilter(QueryBuilders
.queryStringQuery(query.toString()))
.setFrom(0)
.setSize(1000)
.execute().actionGet();
例外情報:
RemoteTransportException[[node-224][192.168.0.224:9300] [indices:data/read/search[phase/fetch/id]]]; nested: FetchPhaseExecutionException[Fetch Failed [Failed to highlight
field [_all]]];
nested: IllegalStateException[can't load global ordinals for
reader of type: class
org.apache.lucene.search.highlight.WeightedSpanTermExtractor
$DelegatingLeafReader must be a DirectoryReader];
私はそれを達成するためにどのように、すべてのフィールドを強調表示したい