Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A832EC74B for ; Mon, 9 Sep 2013 09:22:09 +0000 (UTC) Received: (qmail 78510 invoked by uid 500); 9 Sep 2013 09:22:07 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78241 invoked by uid 500); 9 Sep 2013 09:22:07 -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 78228 invoked by uid 99); 9 Sep 2013 09:22:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 09:22:06 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [212.227.17.11] (HELO mout.web.de) (212.227.17.11) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Sep 2013 09:21:59 +0000 Received: from 3capp-webde-bs22.server.lan ([172.19.170.22]) by mriweb.server.lan (mriweb003) with ESMTP (Nemesis) id 0MNIIQ-1VKsPb1oxF-006zSd for ; Mon, 09 Sep 2013 11:21:38 +0200 Received: from [159.144.64.71] by 3capp-webde-bs22.server.lan with HTTP; Mon Sep 09 11:21:38 CEST 2013 MIME-Version: 1.0 Message-ID: From: "Mirko Sertic" To: java-user@lucene.apache.org Subject: Aw: Re: Re: Strange performance of Lucene 4.4.0 Content-Type: text/plain; charset=UTF-8 Date: Mon, 9 Sep 2013 11:21:38 +0200 (CEST) Importance: normal Sensitivity: Normal In-Reply-To: <1378713328.9247.366.camel@te-prime> References: , <522C4F90.9010202@robertoragusa.it> , <1378713328.9247.366.camel@te-prime> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K0:hNmnjIjB5yANMD9u7KMRg221HcZrptRepMZLDtpmBSG 7+uHf3QFRsCkpH/3tjNuvmuuZXraLV6FYZPunZwp39kQFm+zHM W3/f386/xSIXRY0wgu6lVMcOWmUZHBpWjcMSXyTc4EqsB8iF72 441epT8+ioJFcN34syNUzCnO4L3r95mDDQ8gOhiFEbxzu1S7oR v4gIl50AiZVZb7g8ujQCB4XJmMrCS0omDyLd7drh66UM/BcaEi SP1bki8NZAdW5DXM7+8sVMopZaWcKY1tJYQBgwfbohMo3ePmfY RIMayFG7YcieS9IRfH6Uzj3cOpr X-Virus-Checked: Checked by ClamAV on apache.org Hi Basically i am running a load test. For every run i executed about 1 milli= on queries on the same index with the same query string, so it should be wa= rmed up very well ;-) It performs about 8x faster with an empty Sort() inst= ance than the first option. Still do not get it. An empty Sort instance sho= uld sort by score, according to the default constructor. =C2=A0 Providing no sort instance finally invokes protected TopDocs search(Weight weight, ScoreDoc after, int nDocs) throws = IOException while providing a Sort instance finally invokes protected TopFieldDocs search(Weight weight, FieldDoc after, int nDocs, Sort sort, boolean fillFields, boolean doDocScores, boolean doMaxScore) t= hrows IOException =C2=A0 with doDocScores and doMaxScore set to false. Seems like providing an empty Sort() instances should sort by score accord= ing to its default constructor. But no scoring is done by the IndexSearcher= , so there is nothing so sort at all. So from this point of view the scorin= g computation does cause the slower queries. Regards Mirko Gesendet:=C2=A0Montag, 09. September 2013 um 09:55 Uhr Von:=C2=A0"Toke Eskildsen" An:=C2=A0"java-user@lucene.apache.org" Betreff:=C2=A0Re: Aw: Re: Strange performance of Lucene 4.4.0 On Sun, 2013-09-08 at 15:15 +0200, Mirko Sertic wrote: > I have to check, but my usecase does not require sorting or even > scoring at all. I still do not get what the difference is... Please describe how you perform your measurements. How do you ensure that the index is warmed equally for the two cases? - Toke --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org =C2=A0 --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org