Re: Date Query Using Local Params

2018-09-10 Thread Antelmo Aguilar
Hi Erik, Thank you! I did mess with the v parameter, but I was doing it wrong. I was doing this v='([2013-07-08 TO 2013-07-09] OR [2013-07-21 TO 2013-07-25])' Anyways, I needed to use the "fq" parameter and I did this fq=({!field f=collection_date_range op=Within v='[2013-07-08 TO 2013-07-09]'}

Re: Date Query Using Local Params

2018-09-10 Thread Erik Hatcher
When using the {!...} syntax, and combining it with other clauses, the expression parsed needs to come from a local-param `v` parameter (otherwise, without `v`, the parser eats the rest of the string after the closing curly bracket). So you could do something like this: q={!field f=collec

Re: Date Query Using Local Params

2018-09-10 Thread Antelmo Aguilar
Hi Shawn, Thank you. So just to confirm, there is no way for me to use an OR operator with also using the "within" op parameter described in the bottom of this page? https://lucene.apache.org/solr/guide/6_6/working-with-dates.html#WorkingwithDates-MoreDateRangeFieldDetails I appreciate your res

Re: Date Query Using Local Params

2018-09-10 Thread Shawn Heisey
On 9/10/2018 1:21 PM, Antelmo Aguilar wrote: Hi, I have a question. I am trying to use the "within" op parameter in a Date Search. This works like I would expect: {!field f=collection_date_range op=Within}[2013-07-08 TO 2013-07-09] I would like to use an OR with the query though, something li

Date Query Using Local Params

2018-09-10 Thread Antelmo Aguilar
Hi, I have a question. I am trying to use the "within" op parameter in a Date Search. This works like I would expect: {!field f=collection_date_range op=Within}[2013-07-08 TO 2013-07-09] I would like to use an OR with the query though, something like this: {!field f=collection_date_range op=Wit