Package org.elasticsearch.action.admin.indices.analyze

Examples of org.elasticsearch.action.admin.indices.analyze.AnalyzeRequestBuilder.request()


  }
 
  public List<String> analyze(String string, String index) throws IndexMissingException {
    List<String> tokens = Lists.newArrayList();
    AnalyzeRequestBuilder arb = new AnalyzeRequestBuilder(c.admin().indices(), index, string);
    AnalyzeResponse r = c.admin().indices().analyze(arb.request()).actionGet();
   
    for (AnalyzeToken token : r.getTokens()) {
      tokens.add(token.getTerm());
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.