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 Jamie Johnson <je...@gmail.com> on 2011/11/02 23:20:17 UTC

Extended Dismax and Proximity Queries

Is it possible to do Proximity queries using edismax?  I saw I could
do the following

q="batman movie"&qs=100

but I wanted to be able to handle queries like "batman movie"~100

I know I can do

text:"batman movie"~100

but I'm trying to do this without specifying a field.  Is this possible?

Re: Extended Dismax and Proximity Queries

Posted by Erick Erickson <er...@gmail.com>.
Yes. Just try it with &debugQuery=on and you can see the parsed
form of the query.

Best
Erick

On Wed, Nov 2, 2011 at 6:20 PM, Jamie Johnson <je...@gmail.com> wrote:
> Is it possible to do Proximity queries using edismax?  I saw I could
> do the following
>
> q="batman movie"&qs=100
>
> but I wanted to be able to handle queries like "batman movie"~100
>
> I know I can do
>
> text:"batman movie"~100
>
> but I'm trying to do this without specifying a field.  Is this possible?
>