Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 65523 invoked from network); 4 Sep 2005 10:56:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Sep 2005 10:56:00 -0000 Received: (qmail 73347 invoked by uid 500); 4 Sep 2005 10:55:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 73275 invoked by uid 500); 4 Sep 2005 10:55:56 -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 73260 invoked by uid 99); 4 Sep 2005 10:55:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2005 03:55:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.247.155.129] (HELO swip.net) (212.247.155.129) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2005 03:56:10 -0700 X-T2-Posting-ID: BjP/VPIhrta35NvfgpYBhA== Received: from [83.72.128.240] (HELO [127.0.0.1]) by mailfe13.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 15929701 for java-user@lucene.apache.org; Sun, 04 Sep 2005 12:55:48 +0200 Message-ID: <431AD2AC.2030807@nable.dk> Date: Sun, 04 Sep 2005 12:55:40 +0200 From: Filip Anselm User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: How to search between dates? References: <431A047A.5040606@nable.dk> <20050903210752.86785.qmail@web31115.mail.mud.yahoo.com> <7ca1239105090314142709ffcf@mail.gmail.com> <431A9E04.7020203@nable.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DateFilter sounds great!! - But how is the best way to store dates in af Field? I get the time as a unix time stamp, seconds since epoch - and usually I can cut it down to hours or days since ephoc instead - if this has any effect on the perfomance... thanks... Chris Hostetter wrote: >: How do I combine two queries - one made by the QueryParser and the >: programmatically made RangeQuery? > >you could make them both children of a single BooleanQuery, but as long as >you're going to write a little java code to put them together -- why not >use a DateFilter instead? > >http://lucene.apache.org/java/docs/api/org/apache/lucene/search/DateFilter.html > >...it's more efficient then a RangeQuery, it doesn't have the same >"TooManyCLauses" limitations as a RangeQuery, and it would artificially >affect the score of your results. > > > > >-Hoss > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >For additional commands, e-mail: java-user-help@lucene.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org