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.


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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
postedOct 21, '02 at 11:18a
activeOct 21, '02 at 11:18a

1 user in discussion

Stas Chetvertkov: 1 post



site design / logo © 2022 Grokbase