Date Math, NOW and filter queries

2015-11-17 Thread Mugeesh Husain
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

Re: Date Math, NOW and filter queries

2015-11-17 Thread Erick Erickson
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

Re: Date Math, NOW and filter queries

2015-11-17 Thread Shawn Heisey
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

Re: Date Math, NOW and filter queries

2015-11-17 Thread Chris Hostetter
: 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

Re: Date Math, NOW and filter queries

2015-11-17 Thread Mugeesh Husain
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