Re: DisjunctionMaxQuery explaination

2006-09-19 Thread Chris Hostetter
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

Re: DisjunctionMaxQuery explaination

2006-09-19 Thread Find Me
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);

Re: DisjunctionMaxQuery explaination

2006-09-19 Thread Find Me
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

Re: DisjunctionMaxQuery explaination

2006-09-19 Thread Chris Hostetter
: 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