Package org.elasticsearch.search.suggest.completion

Examples of org.elasticsearch.search.suggest.completion.CompletionSuggestionFuzzyBuilder


    @Test
    public void shouldFindSuggestionsForGivenCriteriaQueryUsingCompletionObjectEntity() {
  //given
  loadCompletionObjectEntities();
  CompletionSuggestionFuzzyBuilder completionSuggestionFuzzyBuilder = new CompletionSuggestionFuzzyBuilder("test-suggest")
    .text("m")
    .field("suggest");

  //when
  SuggestResponse suggestResponse = elasticsearchTemplate.suggest(completionSuggestionFuzzyBuilder, CompletionEntity.class);
View Full Code Here


    @Test
    public void shouldFindSuggestionsForGivenCriteriaQueryUsingloadAnnotatedCompletionObjectEntity() {
  //given
  loadCompletionObjectEntities();
  CompletionSuggestionFuzzyBuilder completionSuggestionFuzzyBuilder = new CompletionSuggestionFuzzyBuilder("test-suggest")
    .text("m")
    .field("suggest");

  //when
  SuggestResponse suggestResponse = elasticsearchTemplate.suggest(completionSuggestionFuzzyBuilder, CompletionEntity.class);
View Full Code Here

     * @param name The suggestion name
     * @return a {@link org.elasticsearch.search.suggest.completion.CompletionSuggestionFuzzyBuilder}
     * instance
     */
    public static CompletionSuggestionFuzzyBuilder fuzzyCompletionSuggestion(String name) {
        return new CompletionSuggestionFuzzyBuilder(name);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.search.suggest.completion.CompletionSuggestionFuzzyBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.