SolrDisMaxQuery::setPhraseSlop
Sets the default slop on phrase queries (ps parameter)
説明
public SolrDisMaxQuery SolrDisMaxQuery::setPhraseSlop(string $slop
)
例
例1 SolrDisMaxQuery::setPhraseSlop example
<?php
$dismaxQuery = new SolrDisMaxQuery('lucene');
$dismaxQuery->setPhraseSlop(4);
echo $dismaxQuery.PHP_EOL;
?>
q=lucene&defType=edismax&ps=4