Re: Combine two BooleanQueries by a SpanNearQuery.

2013-01-18 Thread Michel Conrad
s, and span wrapped multi-term queries > (e.g., wildcard, fuzzy query), but not Boolean queries. > > But it does sound like a good feature request. > > There is SpanNotQuery, so you can exclude terms from a span. > > > -- Jack Krupansky > > -Original Message- From

Re: Combine two BooleanQueries by a SpanNearQuery.

2013-01-17 Thread Michel Conrad
oolean" query solely in terms of SpanOrQuery and > SpanNearQuery. If you can't, ... then it probably can't be done, but you > should be able to. > > How about starting with a plan English description of the problem you are > trying to solve? > > -- Jack Krupansky > >

Combine two BooleanQueries by a SpanNearQuery.

2013-01-17 Thread Michel Conrad
Hi, I am looking to get a combination of multiple subqueries. What I want to do is to have two queries which have to be near one to another. As an example: Query1: (A AND (B OR C)) Query2: D Then I want to use something like a SpanNearQuery to combine both (slop 5): Both would then have to matc