You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Lance Norskog (JIRA)" <ji...@apache.org> on 2012/05/10 23:54:48 UTC

[jira] [Updated] (SOLR-3448) Date math in range queries does not handle plus sign

     [ https://issues.apache.org/jira/browse/SOLR-3448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lance Norskog updated SOLR-3448:
--------------------------------

    Description: 
This query:
{code}
facet.query=timestamp:[NOW-1YEAR/DAY%20TO%20NOW/DAY+1DAY]
{code}

gives this error:
{code}
    Cannot parse '[NOW-1YEAR/DAY TO NOW/DAY 1DAY]': Encountered " <RANGE_GOOP> "1DAY "" at line 1, column 26.
Was expecting one of:
    "]" ...
    "}" ...
{code}
Should the fix be to add a backslash in front of +1DAY? That does not work.

  was:
This query:
{code}
facet.query=[NOW-1YEAR/DAY%20TO%20NOW/DAY+1DAY]
{code}

gives this error:
{code}
    Cannot parse '[NOW-1YEAR/DAY TO NOW/DAY 1DAY]': Encountered " <RANGE_GOOP> "1DAY "" at line 1, column 26.
Was expecting one of:
    "]" ...
    "}" ...
{code}
Should the fix be to add a backslash in front of +1DAY? That does not work.

    
> Date math in range queries does not handle plus sign
> ----------------------------------------------------
>
>                 Key: SOLR-3448
>                 URL: https://issues.apache.org/jira/browse/SOLR-3448
>             Project: Solr
>          Issue Type: Bug
>          Components: query parsers
>            Reporter: Lance Norskog
>
> This query:
> {code}
> facet.query=timestamp:[NOW-1YEAR/DAY%20TO%20NOW/DAY+1DAY]
> {code}
> gives this error:
> {code}
>     Cannot parse '[NOW-1YEAR/DAY TO NOW/DAY 1DAY]': Encountered " <RANGE_GOOP> "1DAY "" at line 1, column 26.
> Was expecting one of:
>     "]" ...
>     "}" ...
> {code}
> Should the fix be to add a backslash in front of +1DAY? That does not work.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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