lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Date Math, NOW and filter queries
Date Tue, 17 Nov 2015 16:58:58 GMT
Congratulations, you are in "Url escaping hell" ;)

the '+' sign is a URL-escape for space, which you
see in the error message.

Escape it as %2B and you should be fine.

Best,
Erick

On Tue, Nov 17, 2015 at 6:07 AM, Mugeesh Husain <mugeesh@gmail.com> wrote:
> hi!,
>
> http://lucidworks.com/blog/2012/02/23/date-math-now-and-filter-queries/
>
> for date range query i am following above article,in this article
>
> I try to querying fq=date:[NOW/DAY-7DAYS TO NOW/DAY], it is working fine,
>
> when i fire query fq=date:[NOW/DAY-7DAYS TO NOW/DAY+1DAY], it is giving
> below error
>
> "fq":"initial_release_date:[NOW/DAY-7DAYS TO NOW/DAY 1DAY]",
>       "rows":"32"}},
>   "error":{
>     "msg":"org.apache.solr.search.SyntaxError: Cannot parse
> 'initial_release_date:[NOW/DAY-7DAYS TO NOW/DAY 1DAY]': Encountered \"
> <RANGE_GOOP> \"1DAY \"\" at line 1, column 47.\nWas expecting one of:\n
> \"]\" ...\n    \"}\" ...\n    ",
>     "code":400}}
>
>
> why it is giving error
>
> Thanks
> mugeesh
>
>
>
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Date-Math-NOW-and-filter-queries-tp4240561.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message