Hi Andre,

qs is used when you have explicit phrase query (you need to use quotes for 
this) in your search string.

q="lisboa tipos"&qs=1


--- On Wed, 5/9/12, André Maldonado <andre.maldon...@gmail.com> wrote:

> From: André Maldonado <andre.maldon...@gmail.com>
> Subject: EDisMax and Query Phrase Slop Problem
> To: solr-user@lucene.apache.org
> Date: Wednesday, May 9, 2012, 3:41 PM
> Hi all.
> 
> In my index I have this field called textoboost. In one of
> the documents,
> the field have this value:
> 
> <arr name="textoboost"><str
> /><str>PORTUGAL *Lisboa *vendo ótimos aptos
> vários *tipos *totalmente legalizados reformados ótimas
> localidades ótimos
> preços, Inf. Rio 8353-2447 /9425-0025
> Sr.Pedro</str><str>PORTUGAL Lisboa
> vendo ótimos aptos vários tipos totalmente legalizados
> reformados ótimas
> localidades ótimos preços, Inf. Rio 8353-2447 /9425-0025
> Sr.Pedro</str><str>
> 3121748</str><str>3121748</str><str>imoveis</str><str
> /><str>-1 dormitorio</
> str><str>imoveis</str><str>ZP778492</str><str
> /><str /><str>Venda</str></arr
> >
> 
> And this is the analyzer for this field:
> 
> <fieldType name="searchable" class="solr.TextField"
> positionIncrementGap="
> 1000"><analyzer><tokenizer
> class="solr.WhitespaceTokenizerFactory" /> <
> filter class="solr.PatternReplaceFilterFactory"
> pattern="^(?:19|20)(\d{2})$"
>  replacement="$1" /><filter
> class="solr.ASCIIFoldingFilterFactory" /><filter
>  class="solr.LowerCaseFilterFactory" /><filter
> class="
> solr.SynonymFilterFactory" synonyms="synonyms.txt"
> ignoreCase="true" expand
> ="true" /><filter class="solr.StopFilterFactory"
> ignoreCase="true" words="
> stopwords.txt" enablePositionIncrements="true"
> /></analyzer></fieldType>
> 
> So, when doing the above query, I got the above document:
> 
> http://00.000.0.00:8983/solr/Index/select/?start=0&rows=12&*
> q=lisboa%20tipos&qf=textoboost*&fq=localexibicao%3axpto*
> &defType=edismax&mm=100%*25&debugQuery=true&echoParams=all<http://10.100.3.62:8984/solr/Index/select/?start=0&rows=12&q=lisboa%20tipos&qf=textoboost&fq=localexibicao%3azap&qs=100&defType=edismax&mm=100%25&debugQuery=true&echoParams=all>
> 
> And this is ok. But when asking for a query phrase slop of
> "1", the
> document is still returned:
> 
> http://00.000.0.00:8983/solr/Index/select/?start=0&rows=12&q=lisboa%20tipos&qf=textoboost&fq=localexibicao%3axpto
> *&qs=1*&defType=edismax&mm=100%25&debugQuery=true&echoParams=all<http://10.100.3.62:8984/solr/Index/select/?start=0&rows=12&q=lisboa%20tipos&qf=textoboost&fq=localexibicao%3azap&qs=100&defType=edismax&mm=100%25&debugQuery=true&echoParams=all>
> 
> The Query Phrase Slop (qs param) isn't affecting matching,
> or I didn't
> understood the usage of this parameter? In Solr Wiki, we
> have only this
> explanation:
> 
> qs (Query Phrase Slop)Amount of slop on phrase queries
> explicitly included
> in the user's query string (in qf fields; affects matching)
> 
> Thank's in advance.
> 
> *
> ----------------------------------------------------------------------------------------------
> *
> *"E conhecereis a verdade, e a verdade vos libertará."
> (João 8:32)*
> 
>  *andre.maldonado*@gmail.com <andre.maldon...@gmail.com>
>  (11) 9112-4227
> 
> <http://www.orkut.com.br/Main#Profile?uid=2397703412199036664>
> <http://www.orkut.com.br/Main#Profile?uid=2397703412199036664>
> <http://www.facebook.com/profile.php?id=100000659376883>
>   <http://twitter.com/andremaldonado>
> <http://www.delicious.com/andre.maldonado>
>   <https://profiles.google.com/105605760943701739931>
> <http://www.linkedin.com/pub/andr%C3%A9-maldonado/23/234/4b3>
>   <http://www.youtube.com/andremaldonado>
>

Reply via email to