Chuck Williams wrote:
I think there is another problem here.  It is currently the Weight
implementations that do rewrite(), which requires access to the index,
not just to the idf's.  E.g., RangeQuery.rewrite() must find the terms
in the index within the range.  So, the Weight cannot be computed in the
MultiSearcher, as it does not have direct access to the remote index.

rewrite() is actually called before the weight is constructed. In the remote case, rewrite() is another IPC. So, when a query is executed on a MultiSearcher of RemoteSearchables, the following remote calls are made:


1. RemoteSearchable.rewrite(Query) is called
2. RemoteSearchable.docFreq(Term) is called for each term in the rewritten query while constructing a Weight.
3. RemoteSearchable.search(Weight, ...) is called.


So I don't think this is a problem.

Doug

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



Reply via email to