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
ttp://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/DA
On 11/17/2015 7:07 AM, Mugeesh Husain wrote:
> 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
: the '+' sign is a URL-escape for space, which you
: see in the error message.
more specifically, the error indicates that something/somewhere/somehow
when you are construction your request to Solr, your HTTP request params
are not getting properly escaped -- so the '+' is being sent literlay
thanks all of you,
actually the problem was '+' sign is a URL-escape for space,
Using %2B instead of + sign, should be fine
--
View this message in context:
http://lucene.472066.n3.nabble.com/Date-Math-NOW-and-filter-queries-tp4240561p4240675.html
Sent from the Solr - User mailing list