You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2013/03/08 04:48:12 UTC

[jira] [Commented] (SOLR-4538) DateMathParser doesn't work correctly.

    [ https://issues.apache.org/jira/browse/SOLR-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13596773#comment-13596773 ] 

Hoss Man commented on SOLR-4538:
--------------------------------

Weird.  

This appears to be a query parsing issue, not a DateMathParser issue.

Works...

{noformat}
http://localhost:8983/solr/select?q={!field%20f=foo_dt}2013-03-08T00:46:15Z/DAY%2B6MONTHS%2B3DAYS&debug=query
--> <str name="parsedquery">foo_dt:2013-09-11T00:00:00Z</str>

http://localhost:8983/solr/select?q={!term%20f=foo_dt}2013-03-08T00:46:15Z/DAY%2B6MONTHS%2B3DAYS&debug=query
--> <str name="parsedquery">foo_dt:2013-09-11T00:00:00Z</str>


http://localhost:8983/solr/select?q=*:*&rows=0&debug=query&facet=true&facet.range=foo_dt&facet.range.start=2013-03-08T00:46:15Z/DAY%2B6MONTHS%2B3DAYS&facet.range.end=2013-03-08T00:46:15Z/DAY%2B6MONTHS%2B3DAYS&facet.range.gap=%2B1DAY
--> <date name="start">2013-09-11T00:00:00Z</date>
--> <date name="end">2013-09-11T00:00:00Z</date>
{noformat}

Fails...

{noformat}
http://localhost:8983/solr/select?q=foo_dt:2013-03-08T00\:46\:15Z/DAY%2B6MONTHS%2B3DAYS&debug=query
--> <str name="parsedquery">foo_dt:2013-09-08T00:00:00Z</str>

http://localhost:8983/solr/select?q=foo_dt:%222013-03-08T00:46:15Z/DAY%2B6MONTHS%2B3DAYS%22&debug=query
--> <str name="parsedquery">foo_dt:2013-09-08T00:00:00Z</str>
{noformat}

(all URLs using Solr 4.1.0 with example configs)
                
> DateMathParser doesn't work correctly.
> --------------------------------------
>
>                 Key: SOLR-4538
>                 URL: https://issues.apache.org/jira/browse/SOLR-4538
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.1
>            Reporter: Minoru Osuka
>
> DateMathParser doesn't work correctly.
> http://lucene.apache.org/solr/4_1_0/solr-core/org/apache/solr/util/DateMathParser.html
> fq=last_modified:"2013-03-08T00:46:15Z/DAY+6MONTHS+3DAYS"
> expected; last_modified:2013-09-11T00:00:00Z
> actual; last_modified:2013-09-08T00:00:00Z

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org