builder.field("word", word);
builder.field("wordType", wordType);
if (wordType != HebrewAnalyzer.WordType.UNRECOGNIZED && wordType != HebrewAnalyzer.WordType.NON_HEBREW) {
builder.startArray("lemmas");
Analyzer a = new HebrewQueryLightAnalyzer();
TokenStream ts = a.tokenStream("foo", word);
while (ts.incrementToken()) {
CharTermAttribute cta = ts.getAttribute(CharTermAttribute.class);
builder.value(new String(cta.buffer(), 0, cta.length()));
}
a.close();