SolrDisMaxQuery::setTrigramPhraseSlop

(No version information available, might only be in Git)
Sets Trigram Phrase Slop (ps3 parameter)
public SolrDisMaxQuery SolrDisMaxQuery::setTrigramPhraseSlop ( string $slop )

Sets Trigram Phrase Slop (ps3 parameter)

Parameters:
slop

Phrase slop

Returns:

SolrDisMaxQuery

Examples:
SolrDisMaxQuery::setTrigramPhraseSlop() example
<?php

$dismaxQuery = new SolrDisMaxQuery('lucene');
$dismaxQuery->setTrigramPhraseSlop(2);
echo $dismaxQuery.PHP_EOL;

?>

The above example will output something similar to:

q=lucene&defType=edismax&ps3=2
See also:

SolrDisMaxQuery::addTrigramPhraseField() -

SolrDisMaxQuery::removeTrigramPhraseField() -

SolrDisMaxQuery::setTrigramPhraseFields() -

doc_php
2016-02-24 16:11:48
Comments
Leave a Comment

Please login to continue.