: Wait. If the default op is OR, I thought this query:
:
: (+category:xyz +price:[100 TO *]) -category:xyz
:
: meant "with xyz and range, OR without xyz" because without a plus or
Nope. regardless of hte default op, you've got a BooleanQuery with two
clauses, one of which is negative. the ot
Wait. If the default op is OR, I thought this query:
(+category:xyz +price:[100 TO *]) -category:xyz
meant "with xyz and range, OR without xyz" because without a plus or
minus, OR really means SHOULD (which, bizzarely, is not a keyword).
(+category:xyz +price:[100 TO *]) (-category:xyz)
Is this
: >> (+category:xyz +price:[100 TO *]) -category:xyz
:
: this one doesn't seem to work (I'm not using a price field, but a text field
: -- using price field here just for example).
it never will, it's saying only things that are in category xyz and above
100 dollars can match, but anything in c
>> (+category:xyz +price:[100 TO *]) -category:xyz
this one doesn't seem to work (I'm not using a price field, but a text field
-- using price field here just for example).
Below are some other variations I tried:
(+category:xyz +price:[100 TO *]) -category:xyz -- zero results
(+category:xyz +pr
Because leading negative clauses don't work. The (*:* AND x) syntax
means "select everything AND also select x".
You could also do
(+category:xyz +price:[100 TO *]) -category:xyz
On Tue, May 11, 2010 at 12:36 PM, Satish Kumar
wrote:
> thanks Ahmet.
>
> (+category:xyz +price:[100 TO *]) (+*:* -ca
thanks Ahmet.
(+category:xyz +price:[100 TO *]) (+*:* -category:xyz)
why do we have to use (+*:* -category:xyz) instead of -category:xyz?
On Tue, May 11, 2010 at 3:08 PM, Ahmet Arslan wrote:
> > How do I implement a requirement like "if category is xyz,
> > the price should
> > be greater th
> How do I implement a requirement like "if category is xyz,
> the price should
> be greater than 100 for inclusion in the result set".
>
> In other words, the result set should contain:
> - all matching documents with category value not xyz
> - all matching documents with category value xyz and p
Hi,
How do I implement a requirement like "if category is xyz, the price should
be greater than 100 for inclusion in the result set".
In other words, the result set should contain:
- all matching documents with category value not xyz
- all matching documents with category value xyz and price > 10