return type;
}
private void runQuery(String query, int expectedPosition) throws ParseException, IOException
{
HebrewQueryParser hqp =
new HebrewQueryParser(Version.LUCENE_46, "Text", analyzer);
Query q = hqp.parse(query);
TopDocs td = searcher.search(q, searcher.getIndexReader().maxDoc());
int num = td.scoreDocs[0].doc;
Terms terms = searcher.getIndexReader().getTermVectors(num).terms("Text");