Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 59489 invoked from network); 18 Dec 2008 16:33:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2008 16:33:59 -0000 Received: (qmail 17573 invoked by uid 500); 18 Dec 2008 16:34:03 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 17540 invoked by uid 500); 18 Dec 2008 16:34:03 -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 17528 invoked by uid 99); 18 Dec 2008 16:34:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2008 08:34:03 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MISSING_MID,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [65.199.122.3] (HELO mainsequence.net) (65.199.122.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2008 16:33:40 +0000 Received: from 127.0.0.1 by mainsequence.net (MDaemon PRO v9.6.6) with ESMTP id md50009203126.msg for ; Thu, 18 Dec 2008 11:33:18 -0500 X-Spam-Processed: mainsequence.net, Thu, 18 Dec 2008 11:33:18 -0500 (not processed: message from trusted or authenticated source) X-Authenticated-Sender: test_account@mainsequence.net X-MDRemoteIP: 66.104.120.34 X-Return-Path: prvs=12382bf2f9=chris@mainsequence.net X-Envelope-From: chris@mainsequence.net X-MDaemon-Deliver-To: java-user@lucene.apache.org Reply-To: "Chris Salem" <> From: "Chris Salem" To: java-user@lucene.apache.org CC: Subject: Re: lucene 2.4 sorting slowness Date: Thu, 18 Dec 2008 16:33:17 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: PCRecruiter Emulation of Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: PCRecruiter Emulation of Microsoft MimeOLE V6.00.2800.1441 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_pcrB0ABC9FF13294CD2B870EC70697736BFsection1-b1" X-Virus-Checked: Checked by ClamAV on apache.org Message-Id: <20081218163348.B886181601B@nike.apache.org> ------=_pcrB0ABC9FF13294CD2B870EC70697736BFsection1-b1 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit that makes it much faster (<100ms after the first run). thanks alot. also, the index will be updated oftenly throughout the day, will keeping the indexreader open recognize updates to the index? Sincerely, Chris Salem Development Team Main Sequence Technologies, Inc. PCRecruiter.net - PCRecruiter Support chris@mainsequence.net P: 440.946.5214 ext 5458 F: 440.856.0312 This email and any files transmitted with it may contain confidential information intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. Main Sequence Technologies, Inc. 4420 Sherwin Rd. Willoughby OH 44094 www.pcrecruiter.net ----- Original Message ----- To: java-user@lucene.apache.org From: Michael McCandless Sent: 12/17/2008 4:46:18 PM Subject: Re: lucene 2.4 sorting slowness Are you warming the searcher first, and then testing the sort performance? (The first query is slow because it populates the FieldCache, internally, which is then reused for subsequent queries as long as you don't close that reader/searcher). Mike Chris Salem wrote: > Hello, > I have an index with ~4000000 documents and some 200 fields. > Searching without sorting takes around 300 - 500 ms, when sorting on > dates (formated as 'yyyy-mm-dd') searching time takes on average 15 > seconds. Here's the code that does the search: > hits = searcher.search(query, new Sort(new > SortField("slast_modified", false))); > and here's how that field is being indexed: > doc.add(new Field("slast_modified", "2008-12-12", Field.Store.NO, > Field.Index.NOT_ANALYZED)); > Am I doing something wrong? Is there a bug in lucene and if so is > there a way to work around it so that search speed is increased to > something reasonable? > Thanks > Sincerely, > Chris Salem > Development Team > Main Sequence Technologies, Inc. > PCRecruiter.net - PCRecruiter Support > chris@mainsequence.net > P: 440.946.5214 ext 5458 > F: 440.856.0312 > > This email and any files transmitted with it may contain > confidential information intended solely for the use of the > individual or entity to whom they are addressed. If you have > received this email in error please notify the sender. Please note > that any views or opinions presented in this email are solely those > of the author and do not necessarily represent those of the company. > Finally, the recipient should check this email and any attachments > for the presence of viruses. The company accepts no liability for > any damage caused by any virus transmitted by this email. Main > Sequence Technologies, Inc. 4420 Sherwin Rd. Willoughby OH 44094 www.pcrecruiter.net > > (The following links were included with this email:) > http://www.pcrecruiter.net/ > > http://www.pcrecruiter.net/support.htm > > mailto:chris@mainsequence.net > > > > (The following links were included with this email:) > http://www.pcrecruiter.net/ > > http://www.pcrecruiter.net/support.htm > > mailto:chris@mainsequence.net > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org (The following links were included with this email:) http://www.pcrecruiter.net/ http://www.pcrecruiter.net/support.htm mailto:chris@mainsequence.net (The following links were included with this email:) http://www.pcrecruiter.net/ http://www.pcrecruiter.net/support.htm mailto:chris@mainsequence.net ------=_pcrB0ABC9FF13294CD2B870EC70697736BFsection1-b1--