PHP Класс Elastica\Query\MultiMatch

Автор: Rodolfo Adhenawer Campagnoli Moraes ([email protected])
Автор: Wong Wing Lun ([email protected])
Автор: Tristan Maindron ([email protected])
Наследование: extends AbstractQuery
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
setAnalyzer ( string $analyzer ) Set analyzer.
setCutoffFrequency ( float $cutoffFrequency ) Set cutoff frequency for Match Query.
setFields ( array $fields = [] ) Sets Fields to be used in the query.
setFuzziness ( float | string $fuzziness ) Set fuzziness.
setMaxExpansions ( integer $maxExpansions ) Set max expansions.
setMinimumShouldMatch ( mixed $minimumShouldMatch ) Set field minimum should match for Match Query.
setOperator ( string $operator = 'or' ) Sets operator for Match Query.
setPrefixLength ( integer $prefixLength ) Set prefix length.
setQuery ( string $query = '' ) Sets the query.
setTieBreaker ( float $tieBreaker ) Sets tie breaker to multiplier value to balance the scores between lower and higher scoring fields.
setType ( string $type ) Set type.
setUseDisMax ( boolean $useDisMax = true ) Sets use dis max indicating to either create a dis_max query or a bool query.
setZeroTermsQuery ( string $zeroTermQuery = 'none' ) Set zero terms query for Match Query.

Описание методов

setAnalyzer() публичный Метод

Set analyzer.
public setAnalyzer ( string $analyzer )
$analyzer string

setCutoffFrequency() публичный Метод

Set cutoff frequency for Match Query.
public setCutoffFrequency ( float $cutoffFrequency )
$cutoffFrequency float

setFields() публичный Метод

Sets Fields to be used in the query.
public setFields ( array $fields = [] )
$fields array Fields

setFuzziness() публичный Метод

Set fuzziness.
public setFuzziness ( float | string $fuzziness )
$fuzziness float | string

setMaxExpansions() публичный Метод

Set max expansions.
public setMaxExpansions ( integer $maxExpansions )
$maxExpansions integer

setMinimumShouldMatch() публичный Метод

Set field minimum should match for Match Query.
public setMinimumShouldMatch ( mixed $minimumShouldMatch )
$minimumShouldMatch mixed

setOperator() публичный Метод

If not set, defaults to 'or'
public setOperator ( string $operator = 'or' )
$operator string

setPrefixLength() публичный Метод

Set prefix length.
public setPrefixLength ( integer $prefixLength )
$prefixLength integer

setQuery() публичный Метод

Sets the query.
public setQuery ( string $query = '' )
$query string Query

setTieBreaker() публичный Метод

If not set, defaults to 0.0.
public setTieBreaker ( float $tieBreaker )
$tieBreaker float

setType() публичный Метод

Set type.
public setType ( string $type )
$type string

setUseDisMax() публичный Метод

If not set, defaults to true.
public setUseDisMax ( boolean $useDisMax = true )
$useDisMax boolean

setZeroTermsQuery() публичный Метод

If not set, default to 'none'
public setZeroTermsQuery ( string $zeroTermQuery = 'none' )
$zeroTermQuery string