lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Why is not Serializable?
Date Wed, 10 Aug 2005 16:45:21 GMT
Ali Rouhi wrote:
> I can think of  3 reasons why search methods returning Hits objects
> are not exposed in Searchable:
> 1) Someone forgot to declare Hits Serializable
> 2) There is a fundamental reason the forms of search which return Hits
> objects cannot be called remotely, some non optimal form of search
> will get called on the server(s) and I can't do anything about it. For
> example "void search(Query query, Filter filter, HitCollector
> results)" gets called.
> 3) Under the hood everything takes care of itself. When I call the
> "public Hits search(){...}" on the client, and use the Hits object to
> retrieve the 100 most relevant or top sorting results, a non optimal
> form of search does *not* get called on the server (maybe a form
> returning "TopDocs" is called). In this case I'm worrying
> unnecessarily!?

The correct answer is (3).  Try it and see!


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

View raw message