GreatGatsby
GreatGatsby

Reputation: 75

Lucene 4.6 get document vectors

I would like to get the vectors of a number of documents using lucene 4.6 . I m quite new to Lucene and I cannot find a guide to help me. Can you please help me? Note: I have already done index and searcher, i just need code how to take vectors of documents! Thank you in advance

Upvotes: 0

Views: 216

Answers (1)

George Ant
George Ant

Reputation: 371

You can use the getTermVector method of the IndexReader class.

indexReader.getTermVector(docID, field);

Upvotes: 2

Related Questions