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 Deyan Yotsov <de...@yotsov.org> on 2018/02/27 15:23:56 UTC

Searching for a phrase in proximity to another token in SOLR

Hello,

Is there a way to achieve something along these lines:

"("john smith") josh"~12

Thank you,

Deyan


Re: Searching for a phrase in proximity to another token in SOLR

Posted by Erick Erickson <er...@gmail.com>.
Did you try the ComplexPhraseQueryParser? See:
https://lucene.apache.org/solr/guide/6_6/other-parsers.html

Best,
Erick

On Tue, Feb 27, 2018 at 7:23 AM, Deyan Yotsov <de...@yotsov.org> wrote:
> Hello,
>
> Is there a way to achieve something along these lines:
>
> "("john smith") josh"~12
>
> Thank you,
>
> Deyan
>