Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 94020 invoked from network); 17 Aug 2004 18:49:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Aug 2004 18:49:41 -0000 Received: (qmail 29622 invoked by uid 500); 17 Aug 2004 18:49:37 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 29566 invoked by uid 500); 17 Aug 2004 18:49:37 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 29510 invoked by uid 99); 17 Aug 2004 18:49:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.61.132.12] (HELO server1.livestoryboard.com) (209.61.132.12) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 17 Aug 2004 11:49:36 -0700 Received: from [127.0.0.1] (livestoryboard.com [209.61.132.12] (may be forged)) (authenticated) by server1.livestoryboard.com (8.11.6/8.11.6) with ESMTP id i7HItiA09885 for ; Tue, 17 Aug 2004 13:55:44 -0500 Message-ID: <4122528B.5000603@koberg.com> Date: Tue, 17 Aug 2004 11:46:35 -0700 From: Robert Koberg User-Agent: Mozilla Thunderbird 0.7 (Macintosh/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Developers List Subject: Re: the future of DateField References: <200408171735.03548@danielnaber.de> <1092764048.7071.31.camel@localhost.localdomain> <41224567.8010206@koberg.com> <200408172037.28652@danielnaber.de> In-Reply-To: <200408172037.28652@danielnaber.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Daniel Naber wrote: >On Tuesday 17 August 2004 19:50, Robert Koberg wrote: > > > >>Why can't Field.Text >>be used? In other words, why cant the date string be tokenized? >> >> > >What would you gain? If you tokenize "2004-08-12" into 2004, 08, 12 you can >only find that date with a phrase query, which is slower than a term >query. Also, you can search for "12" but you get both documents from >December and those from the 12th of any month, which doesn't make sense. > > It is not a big deal, but forces me to check for the 2 different date attributes in the XML I am indexing as opposed to using Field.Text for all and not check. I did not realize it uses a dash as the separator. I thought dashes were just stripped. best, -Rob >Regards > Daniel > > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org