SolrDisMaxQuery
PHP Manual

SolrDisMaxQuery::setQueryPhraseSlop

(Não há informação de versão disponível, talvez apenas no SVN)

SolrDisMaxQuery::setQueryPhraseSlopspecifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf parameter)

Descrição

public SolrDisMaxQuery SolrDisMaxQuery::setQueryPhraseSlop ( string $slop )

The Query Phrase Slop is the amount of slop permitted on phrase queries explicitly included in the user's query string with the qf parameter.

slop refers to the number of positions one token needs to be moved in relation to another token in order to match a phrase specified in a query.

Parâmetros

slop

Amount of slop

Valor Retornado

SolrDisMaxQuery

Exemplos

Exemplo #1 SolrDisMaxQuery::setQueryPhraseSlop() example

<?php

$dismaxQuery 
= new SolrDisMaxQuery();
$dismaxQuery->setQueryPhraseSlop(3);
echo 
$dismaxQuery;
?>

O exemplo acima irá imprimir algo similar à:

defType=edismax&qs=3

SolrDisMaxQuery
PHP Manual