Re: grouping in fq

2010-05-17 Thread Chris Hostetter
: 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

Re: grouping in fq

2010-05-15 Thread Lance Norskog
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

Re: grouping in fq

2010-05-13 Thread Chris Hostetter
: >> (+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

Re: grouping in fq

2010-05-13 Thread Satish Kumar
>> (+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

Re: grouping in fq

2010-05-12 Thread Lance Norskog
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

Re: grouping in fq

2010-05-11 Thread Satish Kumar
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

Re: grouping in fq

2010-05-11 Thread Ahmet Arslan
> 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

grouping in fq

2010-05-11 Thread Satish Kumar
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