Re: Date Comparison in SOLR

2016-11-07 Thread Sadheera Vithanage
Thanks Erick. I tried with function queries, but still not getting it right, may be not using it the correct way. If someone can let me know how to get the difference of 2 date fields, I think that might help. Thank you. On Tue, Nov 8, 2016 at 11:55 AM, Erick Erickson

Re: Date Comparison in SOLR

2016-11-07 Thread Erick Erickson
This looks much more like a function query Best, Erick On Mon, Nov 7, 2016 at 4:18 PM, Sadheera Vithanage wrote: > Hi Experts, > > I am trying to compare dates as below in SOLR and not getting the syntax > right. > If someone could help, It will be so great. > > >

Date Comparison in SOLR

2016-11-07 Thread Sadheera Vithanage
Hi Experts, I am trying to compare dates as below in SOLR and not getting the syntax right. If someone could help, It will be so great. _SolrIntField__i+NOW:{NOW TO *} Basically what i am trying to do is add an existing int field in solr to current date and compare it with another date field.