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 <muge...@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.