lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Rodenburg <jeff.rodenb...@gmail.com>
Subject Hitcollectors and remotesearchables
Date Mon, 10 Oct 2005 22:18:54 GMT
Doug Cutting once said, back in 2003:

" The *HitCollector*-based search API is not meant to work remotely. To do
so would involve an RPC-callback for every non-zero score, which would be
extremely expensive. Also, just making *HitCollector* serializable would not
be sufficient. You'd also need to pass in a *HitCollector* implementation
that subclasses UnicastRemoteObject, so that the callbacks can return to the
original VM.

So, if you can, it's considerably simpler and more efficient to use
TopDocs-based search when you're working remotely."

Is this still considered best practice?

- jeff r.

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