Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@locus.apache.org Received: (qmail 60632 invoked from network); 21 Nov 2006 01:55:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Nov 2006 01:55:46 -0000 Received: (qmail 95258 invoked by uid 500); 21 Nov 2006 01:55:54 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 95245 invoked by uid 500); 21 Nov 2006 01:55:54 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 95236 invoked by uid 99); 21 Nov 2006 01:55:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2006 17:55:54 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2006 17:55:40 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id 034421A9846; Mon, 20 Nov 2006 17:55:07 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r477465 - in /incubator/solr/trunk: ./ example/exampledocs/ example/solr/conf/ src/java/org/apache/solr/schema/ src/java/org/apache/solr/util/ src/test/org/apache/solr/ src/test/org/apache/solr/util/ Date: Tue, 21 Nov 2006 01:55:06 -0000 To: solr-commits@lucene.apache.org From: hossman@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061121015507.034421A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hossman Date: Mon Nov 20 17:55:05 2006 New Revision: 477465 URL: http://svn.apache.org/viewvc?view=rev&rev=477465 Log: SOLR-71: Date Math for DateField Added: incubator/solr/trunk/src/java/org/apache/solr/util/DateMathParser.java (with props) incubator/solr/trunk/src/test/org/apache/solr/util/DateMathParserTest.java (with props) Modified: incubator/solr/trunk/CHANGES.txt incubator/solr/trunk/example/exampledocs/solr.xml incubator/solr/trunk/example/solr/conf/schema.xml incubator/solr/trunk/example/solr/conf/solrconfig.xml incubator/solr/trunk/src/java/org/apache/solr/schema/DateField.java incubator/solr/trunk/src/test/org/apache/solr/BasicFunctionalityTest.java Modified: incubator/solr/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/solr/trunk/CHANGES.txt?view=diff&rev=477465&r1=477464&r2=477465 ============================================================================== --- incubator/solr/trunk/CHANGES.txt (original) +++ incubator/solr/trunk/CHANGES.txt Mon Nov 20 17:55:05 2006 @@ -65,7 +65,10 @@ 29. autoCommit can be specified every so many documents added (klaas, SOLR-65) 30. ${solr.home}/lib directory can now be used for specifying "plugin" jars (hossman, SOLR-68) - +31. Support for "Date Math" relative "NOW" when specifying values of a + DateField in a query -- or when adding a document. + (hossman, SOLR-71) + Changes in runtime behavior 1. classes reorganized into different packages, package names changed to Apache 2. force read of document stored fields in QuerySenderListener Modified: incubator/solr/trunk/example/exampledocs/solr.xml URL: http://svn.apache.org/viewvc/incubator/solr/trunk/example/exampledocs/solr.xml?view=diff&rev=477465&r1=477464&r2=477465 ============================================================================== --- incubator/solr/trunk/example/exampledocs/solr.xml (original) +++ incubator/solr/trunk/example/exampledocs/solr.xml Mon Nov 20 17:55:05 2006 @@ -32,6 +32,7 @@ 0 10 true + 2006-01-17T00:00:00.000Z Modified: incubator/solr/trunk/example/solr/conf/schema.xml URL: http://svn.apache.org/viewvc/incubator/solr/trunk/example/solr/conf/schema.xml?view=diff&rev=477465&r1=477464&r2=477465 ============================================================================== --- incubator/solr/trunk/example/solr/conf/schema.xml (original) +++ incubator/solr/trunk/example/solr/conf/schema.xml Mon Nov 20 17:55:05 2006 @@ -83,11 +83,25 @@ + All other components are mandatory. + + Expressions can also be used to denote calculations which should be + performed relative "NOW" to determine the value, ie... + + NOW/HOUR + ... Round to the start of the current hour + NOW-1DAY + ... Exactly 1 day prior to now + NOW/DAY+6MONTHS+3DAYS + ... 6 months and 3 days in the future from the start of + the current day + + Consult the DateField javadocs for more information. + --> + incubationdate_dt:[* TO NOW/DAY-1MONTH]^2.2