lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Problem with document scoring when using MultiSearcher
Date Tue, 11 Feb 2003 18:40:35 GMT

I just found your message while going through old mail.

Have you tried this recently, with the latest sources from CVS?  I think 
this will be fixed in the 1.3 release, but it would be great to have you 
verify this before we make the release.



Stas Chetvertkov wrote:
> Hi All,
> I am using MultiSearcher to search in 2 indexes having identical structure.
> Those indexes have indexed untokenized field, by which I am trying to
> perform a search using a simple TermQuery.
> The problem that I encountered is that in the case of performing 2 separate
> searches for these indexes scores of all found documents are 1 (which is
> correct), but when performing search using MultiSearcher, results originated
> from the 1st index have scores equal to 1, but results from the 2nd have
> much less fractional scores (I am getting something like 0.22).
> Seems that the cause of the problem is that TermQuery's weight parameter is
> initialized twice (once for each IndexSearcher) with different values, so
> that the scores of documents found in the 1st index have completely
> different order than scores of the 2nd index. Consequence of this is that
> normalization procedure in Hits.getMoreDocs screws up the scores of
> documents from the second index.
> Did anyone meet this problem? Any suggestions for dealing with it would be
> really helpful for us.
> Regards,
> Stas.
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message