PHP 클래스 Elastica\Query\Terms

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_key Terms key.
$_terms Terms.

공개 메소드들

메소드 설명
__construct ( string $key = '', array $terms = [] ) Construct terms query.
addTerm ( string $term ) Adds a single term to the list.
setMinimumMatch ( integer | string $minimum ) Sets the minimum matching values.
setTerms ( string $key, array $terms ) Sets key and terms for the query.
toArray ( ) : array Converts the terms object to an array.

메소드 상세

__construct() 공개 메소드

Construct terms query.
public __construct ( string $key = '', array $terms = [] )
$key string OPTIONAL Terms key
$terms array OPTIONAL Terms list

addTerm() 공개 메소드

Adds a single term to the list.
public addTerm ( string $term )
$term string Term

setMinimumMatch() 공개 메소드

Sets the minimum matching values.
public setMinimumMatch ( integer | string $minimum )
$minimum integer | string Minimum value

setTerms() 공개 메소드

Sets key and terms for the query.
public setTerms ( string $key, array $terms )
$key string Terms key
$terms array Terms for the query.

toArray() 공개 메소드

Converts the terms object to an array.
또한 보기: Elastica\Query\AbstractQuery::toArray()
public toArray ( ) : array
리턴 array Query array

프로퍼티 상세

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

Terms key.
protected $_key

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

Terms.
protected $_terms