We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.3.1
11
8.3
Hi!!
I'm implementing the Phrase Suggester in the Java API Client, the error below occurs:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch.core.search.PhraseSuggest: co.elastic.clients.json.UnexpectedJsonEventException: Unexpected JSON event 'START_ARRAY' instead of '[START_OBJECT, KEY_NAME]' (JSON path: suggest['phrase#did_you_mean'][0].options) (line no=1, column no=2585, offset=-1)] with root cause
Code Java
Map<String, FieldSuggester> map = new HashMap<>(); map.put("did_you_mean", FieldSuggester.of(fs -> fs.phrase(p -> p.maxErrors(2.0).size(5).field("title.suggest") ) )); Suggester suggester = Suggester.of(sg -> sg .suggesters(map) .text(term) ); builder.suggest(suggester);
I think that is it an API bug.
The text was updated successfully, but these errors were encountered:
This has been fixed in #348.
Sorry, something went wrong.
No branches or pull requests
Java API client version
8.3.1
Java version
11
Elasticsearch Version
8.3
Problem description
Hi!!
I'm implementing the Phrase Suggester in the Java API Client, the error below occurs:
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is co.elastic.clients.json.JsonpMappingException: Error deserializing co.elastic.clients.elasticsearch.core.search.PhraseSuggest: co.elastic.clients.json.UnexpectedJsonEventException: Unexpected JSON event 'START_ARRAY' instead of '[START_OBJECT, KEY_NAME]' (JSON path: suggest['phrase#did_you_mean'][0].options) (line no=1, column no=2585, offset=-1)] with root cause
Code Java
I think that is it an API bug.
The text was updated successfully, but these errors were encountered: