update : 2015.11.03
php.shukuma.com

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

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)

설명

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.

인수

slop

Amount of slop

반환값

SolrDisMaxQuery

예제

Example #1 SolrDisMaxQuery::setQueryPhraseSlop() example

<?php

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

위 예제의 출력 예시:

defType=edismax&qs=3