PHP 클래스 Elastica\Query\SimpleQueryString

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

공개 메소드들

메소드 설명
__construct ( string $query, array $fields = [] )
setAnalyzer ( string $analyzer ) Set the analyzer used to analyze each term of the query.
setDefaultOperator ( string $operator ) Set the default operator to use if no explicit operator is defined in the query string.
setFields ( array $fields )
setMinimumShouldMatch ( integer | string $minimumShouldMatch ) Set minimum_should_match option.
setQuery ( string $query ) Set the querystring for this query.

메소드 상세

__construct() 공개 메소드

public __construct ( string $query, array $fields = [] )
$query string
$fields array

setAnalyzer() 공개 메소드

Set the analyzer used to analyze each term of the query.
public setAnalyzer ( string $analyzer )
$analyzer string

setDefaultOperator() 공개 메소드

Set the default operator to use if no explicit operator is defined in the query string.
public setDefaultOperator ( string $operator )
$operator string see OPERATOR_* constants for options

setFields() 공개 메소드

public setFields ( array $fields )
$fields array the fields on which to perform this query. Defaults to index.query.default_field.

setMinimumShouldMatch() 공개 메소드

Set minimum_should_match option.
public setMinimumShouldMatch ( integer | string $minimumShouldMatch )
$minimumShouldMatch integer | string

setQuery() 공개 메소드

Set the querystring for this query.
public setQuery ( string $query )
$query string see ES documentation for querystring syntax