Did you try SpanFirstQuery?
I had the same need in my application, for implementing type-ahead
functionality over the titles and I found that storing them as un_tokenized
gives the best performance (of course, I don't run any query, but iterate
over the terms in my solution).
Span queries are expe
Hello,
I am having a problem qith PrefixQuery:
I have a field name item title which is indexed as:
doc.add(new Field("item_title", item_title.trim().toLowerCase(),
Field.Store.YES, Field.Index.TOKENIZED, Field.TermVector.YES));
and I am forming my query like:
PrefixQuery pq = new PrefixQuery((