PHP 클래스 Elastica\Query\Term

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

공개 메소드들

메소드 설명
__construct ( array $term = [] ) Constructs the Term query object.
setRawTerm ( array $term ) Set term can be used instead of addTerm if some more special values for a term have to be set.
setTerm ( string $key, string | array $value, float $boost = 1 ) Adds a term to the term query.

메소드 상세

__construct() 공개 메소드

Constructs the Term query object.
public __construct ( array $term = [] )
$term array OPTIONAL Calls setTerm with the given $term array

setRawTerm() 공개 메소드

Set term can be used instead of addTerm if some more special values for a term have to be set.
public setRawTerm ( array $term )
$term array Term array

setTerm() 공개 메소드

Adds a term to the term query.
public setTerm ( string $key, string | array $value, float $boost = 1 )
$key string Key to query
$value string | array Values(s) for the query. Boost can be set with array
$boost float OPTIONAL Boost value (default = 1.0)