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
1
2
3
4
5
6
7
<?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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.