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
: 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
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
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
: 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
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
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
: 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
: 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
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
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
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
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
13 matches
Mail list logo