lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Boosting Fields (in index) or Queries
Date Fri, 14 Apr 2006 01:13:55 GMT

On Apr 13, 2006, at 8:55 PM, Jeremy Hanna wrote:
> Looking at the results, the first document in the results should  
> hopefully be near the bottom and the Explanation for this document  
> has a Description/Details (using the toString() on the Explanation)  
> of:
>
> product of:
>   0.0 = sum of:
>   0.0 = coord(0/7)
>
> So I'm kind of at a loss as to what's going on.  Am I just doing  
> something crazy weird in my code?  I didn't find that many examples  
> out there, so I'm kind of winging it according to what I've read in  
> the javadocs and what examples I could find.

Be sure to pass the document id, not the hit number, to explain().   
Looks like you passed an id of an unmatched document.

	Erik


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


Mime
View raw message