« SolrDisMaxQuery::setQueryAlt
SolrDisMaxQuery::setTieBreaker »

SolrDisMaxQuery::setQueryPhraseSlop

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

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

説明

public function 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.

パラメータ

slop

Amount of slop

戻り値

SolrDisMaxQuery

例

例1 SolrDisMaxQuery::setQueryPhraseSlop() example

<?php

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

上の例の出力は、 たとえば以下のようになります。

defType=edismax&qs=3
関連キーワード:
SolrDisMaxQuery   slop   phrase   query   setQueryPhraseSlop   amount   permitted   queries   explicitly   included   user   parameter   Specifies   dismaxQuery   token   setQueryAlt   setTieBreaker   information   available   Query   Phrase   Slop   refers   number   positions
関連する関数・ページ:
solrdismaxquery.setphraseslop   solrdismaxquery.setbigramphraseslop   solrdismaxquery.setqueryalt   solrdismaxquery.settiebreaker   class.solrdismaxquery   solrdismaxquery.construct