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 match and D should be within slop 5 to A, B or C. So my question is if there is a query that combines two BooleanQuery trees into a SpanNearQuery. It would have to take the terms that match Query 1 and the terms that match Query 2, and look if there is a combination within the required slop. Can I rewrite the BooleanQuery after parsing the query as a MultiTermQuery, than wrap these in SpanMultiTermQueryWrapper, which can be combined by the SpanNearQuery? Best regards, Michel --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org