I can see that termpositions gives an enum with all positions of term in
document. I want to do the opposite. Given a position , can I query the
document for term at that position in document?
-
Ready for the edge of your seat? Check out tonight's top pi
I need to use getTermFreqVector on a subset of docs that belong to the hits for
a query. I understand I need to pass the docNumber as an argument in this case.
How do I access that.
For ex .
doc = hits.doc(0);
TermFreqVector vector = reader.getTermFreqVector(docId, "field");
How do I get docI