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 "Gargate, Siddharth" <sg...@ptc.com> on 2009/03/16 09:42:41 UTC

Phrase slop / Proximity search

Can I set the phrase slop value to standard request handler? I want it
to be configurable in solrconfig.xml file.
 
Thanks,
Siddharth
 

Re: Phrase slop / Proximity search

Posted by Chris Hostetter <ho...@fucit.org>.
: Can I set the phrase slop value to standard request handler? I want it
: to be configurable in solrconfig.xml file.

if you mean when a user enters a query like...

	+fieldA:"some phrase" +(fieldB:true fieldC:1234)

..you want to be able to control what slop value gets used for "some 
phrase" then at the moment the only way to configure that is to put it in 
the query string...

	+fieldA:"some phrase"~3 +(fieldB:true fieldC:1234)

...it's the kind of thing that could be set as a property on the query 
parser, but no one has implemented that.  (patches welcome!)




-Hoss


Re: Phrase slop / Proximity search

Posted by Otis Gospodnetic <ot...@yahoo.com>.
I don't think there is a way to set that except in the dismax handler config.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch



----- Original Message ----
> From: "Gargate, Siddharth" <sg...@ptc.com>
> To: solr-user@lucene.apache.org
> Sent: Monday, March 16, 2009 4:42:41 AM
> Subject: Phrase slop / Proximity search
> 
> Can I set the phrase slop value to standard request handler? I want it
> to be configurable in solrconfig.xml file.
> 
> Thanks,
> Siddharth