There is no regular expression support across terms in queries, just within a single term, which is what LUCENE-2754 does (SpanMultiTermQueryWrapper).

You can use the "surround" query parser to do span queries:
http://wiki.apache.org/solr/SurroundQueryParser

But, surround does not support regex terms, just wildcards.

-- Jack Krupansky

-----Original Message----- From: Dmitry Kan
Sent: Friday, January 18, 2013 8:59 AM
To: solr-user@lucene.apache.org
Subject: SOLR 4.x: multiterm phrase inside proximity searches possible?

Hello!

Does SOLR 4.x support / is going to support the multi-term phrase search
inside proximity searches?

To illustrate, we would like the following to work:

"\a b\" c"~10

which would return hits with "a b" 10 tokens away from c in no particular
order.

It looks like https://issues.apache.org/jira/browse/LUCENE-2754 implements
what we need on the Lucene side.

Regards,

Dmitry

Reply via email to