I need know document's top n raw score & term.

For example,

If one document have {apple, banana, coconut} terms, and I need top 2 score
in the document.

Simple way is just search all term in the document and sort the score - like
as below.

first, search about 'apple' term then write the score using IndexSearcher,
Query, Hits, Document and Explanation class.
second, as same way, search about term 'banana'.
third, as same way, search about term 'coconut'. 
last, compare these score and find out top 2 high score term and score.

It is no problem if number of documents are small.
But, I handle over the 1,000,000 documents and over the 20,000,000 terms.

Is there any way solve this problem more quickly?

I use 2.2.0 ver lucene.
-- 
View this message in context: 
http://www.nabble.com/How-can-I-get-document%27s-top-n-raw-score--tp15224916p15224916.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to