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
: 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
If the query stars with a negative clause Lucene returns nothing.
endDate[NOW TO *] OR -endDate:[* TO *]
Might work
-Original Message-
From: Kolodziej Christian [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2008 12:01 AM
To: solr-user@lucene.apache.org
Subject: AW: Searching f