Open GeetaLakhwani-1 opened 4 years ago
It's not implemented yet. We welcome any PR.
Thank you for your response. Could you please let me know why this code has commented in elasticsearch-httpclient-7.2.1.jar as I asked in above comment // entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(TermSuggestion.NAME), // (parser, context) -> TermSuggestion.fromXContent(parser, (String) context))); // entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(PhraseSuggestion.NAME), // (parser, context) -> PhraseSuggestion.fromXContent(parser, (String) context))); // entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(CompletionSuggestion.NAME), // (parser, context) -> CompletionSuggestion.fromXContent(parser, (String) context)));
Suggest API is not implemented in this library.
Thank you for your response. Please let me know once it will be implemented
Hi, Trying to add ElasticSearch Suggestion in my response and implementing it using SearchRequestBuilder as:-
Query is correct as I tried to run in Kibana
I tried to implement suggestion feature with the help of below code as in elasticsearch version 7.2:-
When I tried to retrieve the sugestions with the help of TermSuggestion then not getting proper response and getting below exception:-
==============================================================
As I debugged this and found that registry content for suggestion from elasticsearch-httpclient-7.2.1.jar -> org.codelibs.elasticsearch.client.HttpClient -> getDefaultNamedXContents() is commented.
Could you please advice why these lines are commented ? Is any other jar for elasticsearch suggestion? Could someone please help for the same.