SolrDisMaxQuery::setQueryPhraseSlop

(No version information available, might only be in Git)

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

Açıklama

public SolrDisMaxQuery::setQueryPhraseSlop(string $slop): SolrDisMaxQuery

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.

Bağımsız Değişkenler

slop

Amount of slop

Dönen Değerler

SolrDisMaxQuery

Örnekler

Örnek 1 SolrDisMaxQuery::setQueryPhraseSlop() example

<?php

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

Yukarıdaki örnek şuna benzer bir çıktı üretir:

defType=edismax&qs=3
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top