PHP 클래스 Elastica\Query\MultiMatch

저자: Rodolfo Adhenawer Campagnoli Moraes ([email protected])
저자: Wong Wing Lun ([email protected])
저자: Tristan Maindron ([email protected])
상속: extends AbstractQuery
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

공개 메소드들

메소드 설명
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