Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 15631 invoked from network); 23 Feb 2011 16:50:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2011 16:50:35 -0000 Received: (qmail 94829 invoked by uid 500); 23 Feb 2011 16:50:33 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 94403 invoked by uid 500); 23 Feb 2011 16:50:30 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 94395 invoked by uid 99); 23 Feb 2011 16:50:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Feb 2011 16:50:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [66.94.238.178] (HELO web39402.mail.mud.yahoo.com) (66.94.238.178) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 23 Feb 2011 16:50:20 +0000 Received: (qmail 44713 invoked by uid 60001); 23 Feb 2011 16:49:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298479799; bh=FaujmNudPCDS90dGGyB76ghLGlwNB5LdCe9SR/Ax08Q=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=YpnyitwmN8ei5rRFS/bg8VJ3KwdSeQDy8n3NdnbwNnpWzrBhlM3n1klrwOJ8lCgLR+kTdL0u3ktVViZiPUlaQCmWY0ajSbLK0wbEpHMhTZr85FUdsTr9Uph6+/Nyj9sw3NeIjZgoE7UaL9xGr+p+jJ6GPooOee7xm39JPjD/kUQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=YAu4ShwIgLAqDyb6PIYS1bXU7XV3SrWjryNhRixOX2lpTPc1UCwOC8d7c7X6pFEtJRBQ4PhLxp58DrA9IDtg5RkoA6zybxGFsp9Ev9bo/ymxXXOzFz2hS39z0u+/nAlKc6JYhCRU8RwA6H/Pf+znxogVcaimI8eIBe0ZTR/Ax50=; Message-ID: <678559.43226.qm@web39402.mail.mud.yahoo.com> X-YMail-OSG: 60XHZkkVM1m9lZHN5nl4ZKUfU4fBaj2J.Mv5tyDrKsxZUQU 4Y2Ja1IyEDBhxLhZYaxuLLGh.Btjk4h89XyMHGxcncAkMTVU92aJbgHIg8iQ s1EQxELTrsTVIllZ9fguzyv_khR4YZsd.hDHTJnAOtCuBOxpy33Aqu5MfYVA rs29w25Iou1tkh1iJkvy7ghGQtgnFya4hVBbNy9QRI7_4WmggnzdIZON8IJj xCKcVqOlEWlcpzZBUU37tCOUO1mX0AKSa6tSEzjhxbulU1yfBLulxjhPs7oB WJ5xryEgSFRXQcm0qj64TwI_b23diN_p6T0KhOvxxe5F7tZ2TmOA- Received: from [173.55.148.85] by web39402.mail.mud.yahoo.com via HTTP; Wed, 23 Feb 2011 08:49:59 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.109.292656 References: <579072.92114.qm@web39403.mail.mud.yahoo.com> Date: Wed, 23 Feb 2011 08:49:59 -0800 (PST) From: Andreas Kemkes Subject: Re: Date Math To: solr-user@lucene.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1111219782-1298479799=:43226" X-Virus-Checked: Checked by ClamAV on apache.org --0-1111219782-1298479799=:43226 Content-Type: text/plain; charset=us-ascii Thank you, that clarifies it. Good catch on "-DAY". I had noticed it after submitting but as "-1DAY" causes the same ParseException, I didn't amend the question. Andreas ________________________________ From: Chris Hostetter To: solr-user@lucene.apache.org Sent: Tue, February 22, 2011 6:18:56 PM Subject: Re: Date Math : org.apache.lucene.queryParser.ParseException: Cannot parse 'last_modified:-DAY': ... : Are they not supported as a short-cut for "NOW-1DAY"? I'm using Solr 1.4. No, "-1DAY" is a valid DateMath string (to the DateMathParser) but as a field value you must specify a valid date string, which can *end* with a DateMath string. so "NOW-1DAY" is legal, as is "2011-02-22T12:34:56Z-1DAY" Note also: you didn't do "-1DAY" you tried "-DAY" which isn't valid anywhere. -Hoss --0-1111219782-1298479799=:43226--