lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Israel Tsadok" <>
Subject MultiSearcher, Hits and createWeight
Date Tue, 29 May 2007 09:45:50 GMT
I am developing a distributed index, using MultiSearcher and RemoteSearcher.
When investigating some performance issues, I noticed that there is a lot of
back-and-forth traffic between the servers during the weight calculation.
Although MultiSearcher has a method called createWeight that minimizes the
calls to the sub-searchers, this method never actually gets called when I
call search(query).

>From what I can tell, this is fixable by changing in the line:
weight = q.weight(s);
weight = s.createWeight(q);

I made that change, and it seems to work OK, but I don't know enough about
Lucene to be sure that it's safe.
Have I got something wrong? Is it safe to make that change?

Israel Tsadok

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message