return ResultMessage.parseFromSource(r);
}
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());
}