Re: Combine two BooleanQueries by a SpanNearQuery.

2013-01-18 Thread Michel Conrad
: Michel Conrad > Sent: Thursday, January 17, 2013 12:14 PM > To: java-user@lucene.apache.org > Subject: Re: Combine two BooleanQueries by a SpanNearQuery. > > > The problem I would like to solve is to have two queries that I will > get from the query parser (this could include

Re: Combine two BooleanQueries by a SpanNearQuery.

2013-01-17 Thread Jack Krupansky
u can exclude terms from a span. -- Jack Krupansky -Original Message- From: Michel Conrad Sent: Thursday, January 17, 2013 12:14 PM To: java-user@lucene.apache.org Subject: Re: Combine two BooleanQueries by a SpanNearQuery. The problem I would like to solve is to have two queries that I wil

RE: Combine two BooleanQueries by a SpanNearQuery.

2013-01-17 Thread Michael Ryan
ement this. -Michael -Original Message- From: Michel Conrad [mailto:michel.con...@trendiction.com] Sent: Thursday, January 17, 2013 12:15 PM To: java-user@lucene.apache.org Subject: Re: Combine two BooleanQueries by a SpanNearQuery. The problem I would like to solve is to have two queries that

Re: Combine two BooleanQueries by a SpanNearQuery.

2013-01-17 Thread Michel Conrad
The problem I would like to solve is to have two queries that I will get from the query parser (this could include wildcardqueries and phrasequeries). Both of these queries would have to match the document and as an additional restriction I would like to add that a matching term from the first quer

Re: Combine two BooleanQueries by a SpanNearQuery.

2013-01-17 Thread Jack Krupansky
You need to express the "boolean" 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 -Original M