Re: Matching at least N terms of subqueries

2006-05-21 Thread Paul Elschot
On Sunday 21 May 2006 20:01, Chris Hostetter wrote: > : "wrapping" it with a SpanNearQuery. Unless, there is a way to make > : Span(Near)Query take a BooleanQuery as its clause. Is there a way to > > ope .. span queries can only contain other span queries -- they need the > sub queries to propogat

Re: Matching at least N terms of subqueries

2006-05-21 Thread Chris Hostetter
: "wrapping" it with a SpanNearQuery. Unless, there is a way to make : Span(Near)Query take a BooleanQuery as its clause. Is there a way to ope .. span queries can only contain other span queries -- they need the sub queries to propogate up the span information which normal queries don't know abou

Re: Matching at least N terms of subqueries

2006-05-21 Thread Michael Chan
che.org : Subject: Matching at least N terms of subqueries : : Hi, : : Is there any way to make sure, e.g. at least 2, terms of a subquery : are contained in the results? For example, with the query : "OR(t1,t2,t3) AND OR(t4,t5,t6)", the docs returned must contain either : 2 or more of (t2,

Re: Matching at least N terms of subqueries

2006-05-19 Thread Chris Hostetter
take a look at BooleanQuery.setMinimumNumberShouldMatch(int) : Date: Sat, 20 May 2006 14:27:00 +0800 : From: Michael Chan <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: java-user@lucene.apache.org : Subject: Matching at least N terms of subqueries : : Hi, : : Is there a

Matching at least N terms of subqueries

2006-05-19 Thread Michael Chan
Hi, Is there any way to make sure, e.g. at least 2, terms of a subquery are contained in the results? For example, with the query "OR(t1,t2,t3) AND OR(t4,t5,t6)", the docs returned must contain either 2 or more of (t2,t3,t3) and either 2 or more of (t4,t5,t6). I've read about Similarity, but it s