Package org.elasticsearch.action.suggest

Examples of org.elasticsearch.action.suggest.SuggestRequestBuilder


    return stringBuilder.toString();
  }

    public SuggestResponse suggest(SuggestBuilder.SuggestionBuilder<?> suggestion, String... indices) {
  SuggestRequestBuilder suggestRequestBuilder = client.prepareSuggest(indices);
  suggestRequestBuilder.addSuggestion(suggestion);
  return suggestRequestBuilder.execute().actionGet();
    }
View Full Code Here


        execute(SuggestAction.INSTANCE, request, listener);
    }

    @Override
    public SuggestRequestBuilder prepareSuggest(String... indices) {
        return new SuggestRequestBuilder(this).setIndices(indices);
    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.action.suggest.SuggestRequestBuilder

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.