Re: ORs and Ranks

2009-01-15 Thread Chris Hostetter
: The question I'm trying to phrase is: Is there a way to make the rank of : SHOULD term conditional? : : In the example, I'm trying to express "If the term MEDICAL is found, the : term CAT ranks high; if the term ANIMAL is found, the term CAT ranks low." except that there is an ambiguous si

Re: ORs and Ranks

2009-01-06 Thread Walt Stoneburner
Erick, Thanks for taking a moment to address my question. I suspect the confusion expressed in the answer was from a slight transcription error that added additional punctuation. In your reply, the query was expressed using fields (note the use of extra use of colons that changes the query m

Re: ORs and Ranks

2009-01-05 Thread Erick Erickson
As you say, your "real" queries are more complex, but your example seems like a simple boost to me joined by an OR clause. MEDICAL:CAT^10 OR ANIMAL:CAT which you can construct in a BooleanQuery as two clauses and "SHOULD". The sense of this is that a hit must contain "CAT" in either the MEDICAL