xplain(disjunctQuery, hits.doc(i)).toString()
: Date: Tue, 19 Sep 2006 14:42:58 -0500
: From: Find Me <[EMAIL PROTECTED]>
: Reply-To: java-user@lucene.apache.org
: To: Lucene Java Group
: Subject: Re: DisjunctionMaxQuery explaination
:
: Forgot to add the hits.score() to print out the h
Forgot to add the hits.score() to print out the hits score.
public void explainSearchScore(String indexLocation, DisjunctionMaxQuery
disjunctQuery){
IndexSearcher searcher = new
IndexSearcher(IndexReader.open(indexLocation));
Hits hits = searcher.search(disjunctQuery);
public void explainSearchScore(String indexLocation, DisjunctionMaxQuery
disjunctQuery){
IndexSearcher searcher = new IndexSearcher(IndexReader.open
(indexLocation));
Hits hits = searcher.search(disjunctQuery);
if(hits == null) return;
for(int i = 0; i < hits.leng
: In the following output, each hit has two lines. The first line is the hit
: score and the second line is the explanation given by the
: DisjunctionMaxQuery.
how are you printing the Explanation? .. are you using the toString()?
can you post a small self contained code example showing how you