PHP 클래스 Elastica\Query\Common

상속: extends AbstractQuery
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_field string
$_queryParams array

공개 메소드들

메소드 설명
__construct ( string $field, string $query, float $cutoffFrequency )
setAnalyzer ( string $analyzer ) Set the analyzer for this query.
setBoost ( float $boost ) Set the boost for this query.
setCutoffFrequency ( float $frequency ) Set the frequency below which terms will be put in the low frequency group.
setDisableCoord ( boolean $disable = true ) Enable / disable computation of score factor based on the fraction of all query terms contained in the document.
setField ( string $field ) Set the field on which to query.
setHighFrequencyOperator ( string $operator ) Set the logic operator for high frequency terms.
setLowFrequencyOperator ( string $operator ) Set the logic operator for low frequency terms.
setMinimumShouldMatch ( integer | string $minimum ) Set the minimum_should_match parameter.
setQuery ( string $query ) Set the query string for this query.
setQueryParam ( string $key, mixed $value ) Set a parameter in the body of this query.
toArray ( ) : array

메소드 상세

__construct() 공개 메소드

public __construct ( string $field, string $query, float $cutoffFrequency )
$field string the field on which to query
$query string the query string
$cutoffFrequency float percentage in decimal form (.001 == 0.1%)

setAnalyzer() 공개 메소드

Set the analyzer for this query.
public setAnalyzer ( string $analyzer )
$analyzer string

setBoost() 공개 메소드

Set the boost for this query.
public setBoost ( float $boost )
$boost float

setCutoffFrequency() 공개 메소드

Set the frequency below which terms will be put in the low frequency group.
public setCutoffFrequency ( float $frequency )
$frequency float percentage in decimal form (.001 == 0.1%)

setDisableCoord() 공개 메소드

Enable / disable computation of score factor based on the fraction of all query terms contained in the document.
public setDisableCoord ( boolean $disable = true )
$disable boolean disable_coord is false by default

setField() 공개 메소드

Set the field on which to query.
public setField ( string $field )
$field string the field on which to query

setHighFrequencyOperator() 공개 메소드

Set the logic operator for high frequency terms.
public setHighFrequencyOperator ( string $operator )
$operator string see OPERATOR_* class constants for options

setLowFrequencyOperator() 공개 메소드

Set the logic operator for low frequency terms.
public setLowFrequencyOperator ( string $operator )
$operator string see OPERATOR_* class constants for options

setMinimumShouldMatch() 공개 메소드

Set the minimum_should_match parameter.
public setMinimumShouldMatch ( integer | string $minimum )
$minimum integer | string minimum number of low frequency terms which must be present

setQuery() 공개 메소드

Set the query string for this query.
public setQuery ( string $query )
$query string

setQueryParam() 공개 메소드

Set a parameter in the body of this query.
public setQueryParam ( string $key, mixed $value )
$key string parameter key
$value mixed parameter value

toArray() 공개 메소드

public toArray ( ) : array
리턴 array

프로퍼티 상세

$_field 보호되어 있는 프로퍼티

protected string $_field
리턴 string

$_queryParams 보호되어 있는 프로퍼티

protected array $_queryParams
리턴 array