Final builder for Jest

Is there a built-in solution in jest to send completion askester asks for elasticsearch?

Or do I need to implement my own io.searchbox.AbstractAction for this?

+4
source share
1 answer
Suggest suggest = new Suggest.Builder("{\n" +
                "  \"" + suggestionName + "\" : {\n" +
                "    \"text\" : \"the amsterdma meetpu\",\n" +
                "    \"term\" : {\n" +
                "      \"field\" : \"body\"\n" +
                "    }\n" +
                "  }\n" +
                "}").build();

SuggestResult result = client.execute(suggest);
+1
source

Source: https://habr.com/ru/post/1531786/


All Articles