PHP Class Elastica\Query\MultiMatch

Author: Rodolfo Adhenawer Campagnoli Moraes ([email protected])
Author: Wong Wing Lun ([email protected])
Author: Tristan Maindron ([email protected])
Inheritance: extends AbstractQuery
Exibir arquivo Open project: ruflin/elastica Class Usage Examples

Public Methods

Method Description
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.

Method Details

setAnalyzer() public method

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

setCutoffFrequency() public method

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

setFields() public method

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

setFuzziness() public method

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

setMaxExpansions() public method

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

setMinimumShouldMatch() public method

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

setOperator() public method

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

setPrefixLength() public method

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

setQuery() public method

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

setTieBreaker() public method

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

setType() public method

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

setUseDisMax() public method

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

setZeroTermsQuery() public method

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