Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 29963 invoked from network); 10 Aug 2005 19:43:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Aug 2005 19:43:07 -0000 Received: (qmail 54729 invoked by uid 500); 10 Aug 2005 19:43:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 54705 invoked by uid 500); 10 Aug 2005 19:43:02 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 54692 invoked by uid 99); 10 Aug 2005 19:43:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 12:43:02 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rouhi.ali@gmail.com designates 64.233.184.199 as permitted sender) Received: from [64.233.184.199] (HELO wproxy.gmail.com) (64.233.184.199) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 12:43:24 -0700 Received: by wproxy.gmail.com with SMTP id 55so219535wri for ; Wed, 10 Aug 2005 12:43:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AMmV9CHXkiF5HQgvjpTbtCt5InnhlvJ6tGeXUSzu5LN1pHIqGcUxBnVbUwcXwf5RSRToz90hGLKlLn+/km2I6whhPV8ID2oIC/d1oJ1UfPXXgJzhC5ogLGl8EuxN/TjPxp6PiQ+yqFLOcqIHUCyP766GECquP4NRxygGZOBOQfg= Received: by 10.54.47.74 with SMTP id u74mr689468wru; Wed, 10 Aug 2005 12:43:00 -0700 (PDT) Received: by 10.54.104.8 with HTTP; Wed, 10 Aug 2005 12:43:00 -0700 (PDT) Message-ID: <2c7935ba05081012433030dcba@mail.gmail.com> Date: Wed, 10 Aug 2005 12:43:00 -0700 From: Ali Rouhi To: java-user@lucene.apache.org Subject: Re: Why is Hits.java not Serializable? In-Reply-To: <42FA2F21.20208@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2c7935ba050809233764f98259@mail.gmail.com> <42FA2F21.20208@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks for the quick answer! Ali On 8/10/05, Doug Cutting wrote: > 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!? >=20 > The correct answer is (3). Try it and see! >=20 > Doug >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org