Chuck Williams wrote:
As Wolf does, I hope a committer with deep knowledge of Lucene's design
in this area will weigh in on the issue and help to resolve it.

The root of the bug is in MultiSearcher.search(). This should construct a Weight, weight the query, then score the now-weighted query.


Here's a potential way to fix it:

1. Replace all of the

   ... search(Query, ...)

methods in Searchable.java with

   ... search(Weight, ...)

methods.

2. Add search(Query, ...) convenience methods to Searcher.java which do something like:

  public ... search(Query query, ...) {
     return search(query.weight(this), ...);
  }

3. Update the search() methods in IndexSearcher, MultiSearcher and RemoteSearchable to operate on Weight's instead of queries.

Does that make sense?

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to