Re: How to get the score of a term in a document?

2010-10-02 Thread Sahin Buyrukbilen
Hi Mike and all other friends, the code below does almost what I want. The only thing I need to do is to write the pairs in the order with respect to score, not docID. Current implementation does it wrt docID. I will try to solve that problem, if anybody knows how to do that I appreciate if he/sh

Re: How to get the score of a term in a document?

2010-10-02 Thread Sahin Buyrukbilen
Hi Mike, I am already done with walking through the terms, frequencies and the docs by using termenum, termdocs, and indexreader,. The only thing left is the scores. I will try your suggestion. hope it works. Thank you. Sahin. On Sat, Oct 2, 2010 at 5:30 AM, Michael McCandless < luc...@mikemcca

Re: How to get the score of a term in a document?

2010-10-02 Thread Michael McCandless
It sounds like you can just use Lucene's enum APIs (IndexReader.terms, IndexReader.termDocs) to walk the entire index, converting it to your format? I'm not sure how Luke computes the "score"... but maybe you could, for every term, make a TermQuery and then directly walk its matching docs & scores