Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90192 invoked from network); 21 May 2006 16:16:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 May 2006 16:16:13 -0000 Received: (qmail 87014 invoked by uid 500); 21 May 2006 16:16:11 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 85992 invoked by uid 500); 21 May 2006 16:16:08 -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 85981 invoked by uid 99); 21 May 2006 16:16:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2006 09:16:08 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 194.52.12.17 is neither permitted nor denied by domain of marcus.falck@observer.se) Received: from [194.52.12.17] (HELO mail1.observergroup.com) (194.52.12.17) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2006 09:16:08 -0700 Received: (qmail 17774 invoked by uid 509); 21 May 2006 18:15:45 +0200 Received: from 10.8.1.20 by mail1 (envelope-from , uid 508) with qmail-scanner-1.25-st-qms (clamdscan: 0.85.1/1049. spamassassin: 3.0.2. perlscan: 1.25-st-qms. Clear:RC:1(10.8.1.20):. Processed in 0.088836 secs); 21 May 2006 16:15:45 -0000 X-Antivirus-MYDOMAIN-Mail-From: marcus.falck@observer.se via mail1 X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(10.8.1.20):. Processed in 0.088836 secs Process 17767) Received: from unknown (HELO S1SE1MAIL.emea1.ad.group) (10.8.1.20) by mail1.observergroup.com with SMTP; 21 May 2006 18:15:45 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C67CF1.D024B11E" Subject: SV: Date first best practises Date: Sun, 21 May 2006 18:12:56 +0200 Message-ID: <8834A84C87A2C148AD46921BB8BFC97C33B5E1@S1SE1MAIL.emea1.ad.group> X-MS-Has-Attach: X-MS-TNEF-Correlator: <8834A84C87A2C148AD46921BB8BFC97C33B5E1@S1SE1MAIL.emea1.ad.group> Thread-Topic: Date first best practises Thread-Index: AcZ87a4dp40TLjlKS82NMrBhAoEm3AAA73e/ From: "Marcus Falck" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C67CF1.D024B11E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks. I preffer sorting. But I'm afraid that it won't be enough.=20 How long time do you think it will take to rebuild the caches? If I use a sort on the datefield and perform a query (with that sort) = will it always rebuild the whole cache or just the cache for the actual hits? =20 / Marcus ________________________________ Fr=E5n: Erik Hatcher [mailto:erik@ehatchersolutions.com] Skickat: s=F6 2006-05-21 17:45 Till: java-user@lucene.apache.org =C4mne: Re: Date first best practises On May 21, 2006, at 11:31 AM, Marcus Falck wrote: > I will use Lucene to index 200 million documents (doc size 2kb ->=20 > 20 kb). > With the following requirements: > IndexSearcher needs to be created atleast every 5 minute. > The ranking/scoring/sorting will need to reply the hits ordered by=20 > date desc. > > Will the sorting be good enough on a machine with 4GB of RAM? Since=20 > the cache will be destroyed every time I open a new IndexSercher i=20 > need to know how long it will take to rebuild it (the index is=20 > stored on a SAN). My hunch is that sorting will be fine, but you'll want to warm up the=20 caches before putting a new IndexSearcher into production use. Solr=20 does this by running a configurable set of queries against an index=20 before swapping out the old IndexSearcher with a new warmed up one. > Or do I have to change the scoring so I wont need to access the=20 > date field? > > If i will have to change the scoring does anybody have any tips on=20 > where to begin? Solr's FunctionQuery (isn't it time we move this to the core of=20 Lucene?! :) might be able to help you out in this situation, but it=20 sounds like sorting is what you want to use, not scoring tweaks. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ------_=_NextPart_001_01C67CF1.D024B11E Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ------_=_NextPart_001_01C67CF1.D024B11E--