You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by dyzc <13...@qq.com> on 2011/10/18 02:32:20 UTC

How can I read records from Lucene

Hi,


I would like to read the term and its frequency or score out of indices. How can I do it using Java?


Thanks!

Re: How can I read records from Lucene

Posted by Ian Lea <ia...@gmail.com>.
IndexReader has assorted methods for reading terms and frequency
vectors.  See the javadocs for that class and TermDocs and TermEnum
and TermFreqVector.  Score is only relevant after a search.  See
TopDocs and ScoreDoc.

If you want more specific advice, ask a more specific question.  Or use Google.


--
Ian.


On Tue, Oct 18, 2011 at 1:32 AM, dyzc <13...@qq.com> wrote:
> Hi,
>
>
> I would like to read the term and its frequency or score out of indices. How can I do it using Java?
>
>
> Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org