문제

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

도움이 되었습니까?

해결책

You can use the getTermVector method of the IndexReader class.

indexReader.getTermVector(docID, field);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top