Re: Searching for future or "null" dates

2008-09-25 Thread Michael Lackhoff
On 26.09.2008 06:17 Chris Hostetter wrote: > that's true, regretably there is no prefix operator to indicate a "SHOULD" > clause in the Lucene query langauge, so if you set the default op to "AND" > you can't then override it on individual clauses. > > this is one of hte reasons i never make th

Re: Searching for future or "null" dates

2008-09-25 Thread Chris Hostetter
: I would also like to follow your advice but don't know how to do it with : defaultOperator="AND". What I am missing is the equivalent to OR: : AND: + : NOT: - : OR: ??? : I didn't find anything on the Solr or Lucene query syntax pages. If that's true, regretably there is no prefix operator to i

Re: Searching for future or "null" dates

2008-09-23 Thread Michael Lackhoff
On 23.09.2008 00:30 Chris Hostetter wrote: > : Here is what I was able to get working with your help. > : > : (productId:(102685804)) AND liveDate:[* TO NOW] AND ((endDate:[NOW TO *]) OR > : ((*:* -endDate:[* TO *]))) > : > : the *:* is what I was missing. > > Please, PLEASE ... do yourself a f

RE: Searching for future or "null" dates

2008-09-22 Thread Chris Maxwell
Thanks I'll try it out. hossman wrote: > > > : Here is what I was able to get working with your help. > : > : (productId:(102685804)) AND liveDate:[* TO NOW] AND ((endDate:[NOW TO > *]) OR > : ((*:* -endDate:[* TO *]))) > : > : the *:* is what I was missing. > > Please, PLEASE ... do yourse

RE: Searching for future or "null" dates

2008-09-22 Thread Chris Hostetter
: Here is what I was able to get working with your help. : : (productId:(102685804)) AND liveDate:[* TO NOW] AND ((endDate:[NOW TO *]) OR : ((*:* -endDate:[* TO *]))) : : the *:* is what I was missing. Please, PLEASE ... do yourself a favor and stop using "AND" and "OR" ... food will taste be

RE: Searching for future or "null" dates

2008-09-18 Thread Chris Maxwell
Here is what I was able to get working with your help. (productId:(102685804)) AND liveDate:[* TO NOW] AND ((endDate:[NOW TO *]) OR ((*:* -endDate:[* TO *]))) the *:* is what I was missing. Thanks for your help. hossman wrote: > > > : If the query stars with a negative clause Lucene return

Re: AW: Searching for future or "null" dates

2008-09-16 Thread Chris Maxwell
Yes your right I mistyped when I said [* : *]. I did mean [* TO *] hossman wrote: > > > : present and have a end date in the present/future or none at all. I had > : looked into searching for null dates and had come across the -date[* : > *] > : syntax, which searches for the absence of the in

Re: AW: Searching for future or "null" dates

2008-09-16 Thread Chris Hostetter
: present and have a end date in the present/future or none at all. I had : looked into searching for null dates and had come across the -date[* : *] : syntax, which searches for the absence of the index value for the field : specified. to clarify: that isn't valid syntax. i think you are confus

RE: Searching for future or "null" dates

2008-09-16 Thread Chris Hostetter
: If the query stars with a negative clause Lucene returns nothing. that's not true. If a "Query" in lucene is a BooleanQuery that only contains negative clauses, then Lucene returns nothing (because nothing is positively selected) ... but it if there is a mix of negative lcauses and positive

RE: Searching for future or "null" dates

2008-09-16 Thread Lance Norskog
for future or "null" dates Hi Chris, >I'm having a lot of trouble getting this query syntax to work correctly. >How >can I search for a date, which is either in the future OR missing >completely (meaning open ended) > >I've tried -endDate:[* TO *] OR e

Re: AW: Searching for future or "null" dates

2008-09-16 Thread Chris Maxwell
Christian Kolodziej wrote: > > Hi Chris, > >>I'm having a lot of trouble getting this query syntax to work correctly. >>How >>can I search for a date, which is either in the future OR missing >>completely >>(meaning open ended) >> >>I've tried -endDate:[* TO *] OR endDate[NOW TO *] but that do

AW: Searching for future or "null" dates

2008-09-16 Thread Kolodziej Christian
Hi Chris, >I'm having a lot of trouble getting this query syntax to work correctly. >How >can I search for a date, which is either in the future OR missing >completely >(meaning open ended) > >I've tried -endDate:[* TO *] OR endDate[NOW TO *] but that doesn't work. >Adding parentheses doesn't help

Searching for future or "null" dates

2008-09-15 Thread Chris Maxwell
I'm having a lot of trouble getting this query syntax to work correctly. How can I search for a date, which is either in the future OR missing completely (meaning open ended) I've tried -endDate:[* TO *] OR endDate[NOW TO *] but that doesn't work. Adding parentheses doesn't help either. Any help