Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 75817 invoked from network); 10 Apr 2008 01:05:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 01:05:49 -0000 Received: (qmail 19630 invoked by uid 500); 10 Apr 2008 01:05:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 19604 invoked by uid 500); 10 Apr 2008 01:05:42 -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 19593 invoked by uid 99); 10 Apr 2008 01:05:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 18:05:42 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 01:04:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JjlDz-00053r-A6 for java-user@lucene.apache.org; Wed, 09 Apr 2008 18:05:11 -0700 Message-ID: <16599703.post@talk.nabble.com> Date: Wed, 9 Apr 2008 18:05:11 -0700 (PDT) From: savageboy To: java-user@lucene.apache.org Subject: Re: Fetches the hits very slow (when the date sorting) ! In-Reply-To: <359a92830804090631x312631e1y74e202b2a4173155@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: eingmarra@hotmail.com References: <16580375.post@talk.nabble.com> <359a92830804090631x312631e1y74e202b2a4173155@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes, I found it is because the index-files are bad, it is not because of the time-resolution( my resolution is yyyy-MM-ddHH:mm:ss, as I work for a newspaper group-company, so the time of news pulishing must be more accurate than normal use!) But now the time sorting is alright! I can sorting the 110000 results by time in 0.02 secends! Thank you for your response! Erick Erickson wrote: > > This has been discussed many times on the list, you'd find a wealth > of information if you searched the mail archive. > > The problem usually is that you've stored your dates with fine > resolution. Sorting is dependent on the number of terms, and > if you store millisecond resolution you'll obviously have waaaaaay > more terms than if you store second resolution. Day resolution is > even better. > > Also your first sort takes much longer than subsequent sorts since > various caches aren't filled until needed. So be sure you're measuring > response times after a few sorted queries have happened. > > Best > Erick > > On Wed, Apr 9, 2008 at 2:27 AM, savageboy wrote: > >> >> Hello everyone, >> I have made a search project by use of Lucene2.0 >> But when I use date sorting, the server is running very slow for the >> result >> getting(about 3 sec but I dont sort the results the time of it is about >> 0.019 sec, there are 110000 results to be hit). >> >> document.add(new Field(docFieldName, >> StringUtils.defaultIfEmpty(contentStr, >> ""), storeFlag , tokenizeFlag)); >> >> storeFlag is true >> tokenizeFlag is false >> >> so it means the Field dateTime should be stored and be not tokenized! >> >> If you have some idea about this issue I met, plz let me know! >> Thanks a lot and best Regards! >> >> >> -- >> View this message in context: >> http://www.nabble.com/Fetches-the-hits-very-slow-%28when-the-date-sorting%29-%21-tp16580375p16580375.html >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > -- View this message in context: http://www.nabble.com/Fetches-the-hits-very-slow-%28when-the-date-sorting%29-%21-tp16580375p16599703.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org