You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Jens Sieckmann <je...@unicepta.de> on 2011/07/11 17:44:19 UTC

Query grouping search terms with proximity operator

Hi folks,

I’m new to Solr and just evaluating it for my purposes.

I want to combine OR-grouped search terms by using the proximity
operator with other OR-grouped terms. Something like (although
this is not query parser syntax):

(term A OR term B OR term c) NEAR/5 (term D OR term E)

I didn't find a possibility to do that. Do I have to break it down to:

(term A NEAR/8 term D) OR
(term A NEAR/8 term E) OR
(term B NEAR/8 term D) OR
(term B NEAR/8 term E) OR
(term C NEAR/8 term D) OR
(term C NEAR/8 term E)?

Thanks in advance,
Jens