SolrDisMaxQuery::setQueryPhraseSlop
(No hay información de versión disponible, podría estar únicamente en SVN)
SolrDisMaxQuery::setQueryPhraseSlop — specifies the amount of slop permitted on phrase queries explicitly included in the user's query string (qf parameter)
Descripción
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
Valores devueltos
Ejemplos
Ejemplo #1 SolrDisMaxQuery::setQueryPhraseSlop() example
<?php
$dismaxQuery = new SolrDisMaxQuery();
$dismaxQuery->setQueryPhraseSlop(3);
echo $dismaxQuery;
?>
El resultado del ejemplo sería algo similar a:
defType=edismax&qs=3