Re: Querying Solr Index for date fields

2009-01-20 Thread Erik Hatcher
On Jan 20, 2009, at 5:28 AM, Erik Hatcher wrote: On Jan 20, 2009, at 12:10 AM, prerna07 wrote: below mentioned fq tag gives me error dateField:[NOW-45DAYS TO NOW]^1.0 DateField:[NOW TO NOW+45DAYS]^1.0 What error did you get? You've got dateField/DateField as two different cases, which wou

Re: Querying Solr Index for date fields

2009-01-20 Thread Erik Hatcher
On Jan 20, 2009, at 12:10 AM, prerna07 wrote: below mentioned fq tag gives me error dateField:[NOW-45DAYS TO NOW]^1.0 DateField:[NOW TO NOW+45DAYS]^1.0 What error did you get? You've got dateField/DateField as two different cases, which would give a parse exception if one or both of thos

Re: Querying Solr Index for date fields

2009-01-19 Thread prerna07
We want boosting of results for ?q=dateField:[NOW-45DAYS TO NOW] and ?q=DateField:[NOW TO NOW+45DAYS] below mentioned fq tag gives me error dateField:[NOW-45DAYS TO NOW]^1.0 DateField:[NOW TO NOW+45DAYS]^1.0 Please suggest the syntax of fields defined in fq tag? tHAnks, Prerna Erik Hatcher

Re: Querying Solr Index for date fields

2009-01-16 Thread Erik Hatcher
It doesn't really make sense to use a date field in a dismax qf parameter. Use an fq parameter instead, to filter results by a date field. Dismax is aimed for end users textual queries, not for field selection or more refined typed queries like date or numeric ranges. Erik On J

Re: Querying Solr Index for date fields

2009-01-16 Thread prerna07
We also make query on date ranges, it works when you use NOW function. Try using : ?q=dateField:[* TO NOW] ?q=dateField:[NOW-45DAYS TO NOW] ?q=dateField:[NOW TO NOW+45DAYS] Issue: Current issue which i am facing is with dismaxrequesthandler for date field. As soon as I add dateField in dismax

Re: Querying Solr Index for date fields

2009-01-15 Thread Chris Hostetter
: You will have to URL encode the string correctly and supply date in format : Solr expects. Please check this: http://wiki.apache.org/solr/SolrQuerySyntax beyond that, you may also need to worry about lucene query sytnax escaping ...the query parser can see the ":" character and think you are s

Re: Querying Solr Index for date fields

2009-01-08 Thread Akshay
You will have to URL encode the string correctly and supply date in format Solr expects. Please check this: http://wiki.apache.org/solr/SolrQuerySyntax On Fri, Jan 9, 2009 at 12:21 PM, Rayudu wrote: > > Hi All, > I have a field with is solr.DateField in my schema file. If I want to > get th