Re: problem with date searching.

2012-05-15 Thread ayyappan
if i use q=scanneddate:["2011-09-22T22:40:30Z" TO "2012-02-02T01:30:52Z"] . it is working fine . but when i tried with dismax query .it is not working . EX : select/?defType=dismax&q=["2011-09-22T22:40:30Z" TO "2012-02-02T01:30:52Z"]&qf=scanneddate&version=2.2&start=0&rows=50&indent=on&wt=json&&de

Re: problem with date searching.

2012-05-14 Thread ayyappan
select/?defType=dismax&q=+ibrahim.hamid+2012-02-02T04:00:52Z&qf=+userid+scanneddate&version=2.2&start=0&rows=50&indent=on&wt=json&&debugQuery=on -- View this message in context: http://lucene.472066.n3.nabble.com/problem-with-date-searching-tp3961761p3983802.html Sent from the Solr - User mailing

Re: problem with date searching.

2012-05-14 Thread ayyappan
In fact I am able to see "scanneddate" field when i added query like this "responseHeader":{ - - "q":" ibrahim.hamid 2012-02-02T04:00:52Z", "qf":" userid scanneddate", "wt":"json", "defType":"dismax", "version":"2.2", "rows":"50"}}, "response":{"numF

Re: problem with date searching.

2012-05-05 Thread Lance Norskog
Use debugQuery=true to see exactly how the dismax parser sees this query. Also, since this is a binary query, you can use filter queries instead. Those use the Lucene syntax. On Fri, May 4, 2012 at 8:14 AM, Erick Erickson wrote: > Right, you need to do the explicit qualification of the date fiel

Re: problem with date searching.

2012-05-04 Thread Erick Erickson
Right, you need to do the explicit qualification of the date field. dismax parsing is intended to work with text-type fields, not numeric or date fields. If you attach &debugQuery=on, you'll see that your "scanneddate" field is just dropped. Furthermore, dismax was never intended to work with rang

Re: problem with date searching.

2012-05-04 Thread Dmitry Kan
unless, something else is wrong, my question would be, if you have the documents in solr stamped with these dates? also could try for a test specifying the field name directly: q=scanneddate:["2011-09-22T22:40:30Z" TO "2012-02-02T01:30:52Z"] also, in your first e-mail you said you have used [*"2

Re: problem with date searching.

2012-05-04 Thread ayyappan
thanks for quick response. I tried your advice . ["2011-09-22T22:40:30Z" TO "2012-02-02T01:30:52Z"] like that even though i am not getting any result . -- View this message in context: http://lucene.472066.n3.nabble.com/problem-with-date-searching-tp3961761p3961833.html Sent from the Solr - Us

Re: problem with date searching.

2012-05-04 Thread Dmitry Kan
you have dates in the wrong order in the second query. Try instead: ["2011-09-22T22:40:30Z" TO "2012-02-02T01:30:52Z"] in general: [start_date TO end_date] Dmitry On Fri, May 4, 2012 at 1:10 PM, ayyappan wrote: > Hi > > I'm having a slight problem with date searching... if i give same date