nfsantos commented on code in PR #711: URL: https://github.com/apache/jackrabbit-oak/pull/711#discussion_r977598229
########## oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java: ########## @@ -445,6 +445,12 @@ public PhraseSuggester suggestQuery() { return PhraseSuggester.of(ps -> ps .field(FieldNames.SPELLCHECK) .size(10) + // The Elasticsearch Java client fails parsing a response to suggest queries if the highlight is not set. + // Caused by: co.elastic.clients.util.MissingRequiredPropertyException: Missing required property 'PhraseSuggestOption.highlighted' + // at co.elastic.clients.util.ApiTypeHelper.requireNonNull(ApiTypeHelper.java:76) + // at co.elastic.clients.elasticsearch.core.search.PhraseSuggestOption.<init>(PhraseSuggestOption.java:64) + // Happens with Elasticsearch server 8.4.1 and client 7.17.6 + .highlight(f -> f.preTag("").postTag("")) Review Comment: I opened this issue: https://github.com/elastic/elasticsearch-java/issues/404 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org