PHP 클래스 ElasticSearcher\Abstracts\AbstractQuery

상속: use trait ElasticSearcher\Traits\BodyTrait
파일 보기 프로젝트 열기: madewithlove/elasticsearcher 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data array Data that can be used when building a query.
$fragmentParser ElasticSearcher\Parsers\FragmentParser
$indices array Indices on which the query should be executed.
$queryStringParams array Parameters to be added to the search URL.
$resultParser ElasticSearcher\Abstracts\AbstractResultParser
$searcher ElasticSearcher\ElasticSearcher
$types array Types on which the query should be executed.

공개 메소드들

메소드 설명
__construct ( ElasticSearcher $searcher )
addData ( array $data ) Add data that can be accessed during query building.
getData ( $key = null ) : mixed
getIndices ( ) : array Indices we are searching in.
getRawQuery ( ) : array Get the query after being build.
getResultParser ( ) : mixed
getTypes ( ) : array Types we are searching in.
parseResultsWith ( ElasticSearcher\Abstracts\AbstractResultParser $resultParser )
run ( ) : ElasticSearcher\Abstracts\AbstractResultParser Build and execute the query.
searchIn ( string | array $index, null | string | array $type = null ) Define on which indices and types the query should be run.

보호된 메소드들

메소드 설명
buildQuery ( ) : array Build the query by adding all chunks together.
getQueryStringParam ( string $name ) : mixed
getSearchType ( ) : string
removeQueryStringParam ( string $name )
searchInIndices ( array $indices )
searchInTypes ( array $types )
setQueryStringParam ( string $name, mixed $value )
setSearchType ( string $type )
setup ( ) Prepare the query. Add filters, sorting, .

메소드 상세

__construct() 공개 메소드

public __construct ( ElasticSearcher $searcher )
$searcher ElasticSearcher\ElasticSearcher

addData() 공개 메소드

Add data that can be accessed during query building.
public addData ( array $data )
$data array

buildQuery() 보호된 메소드

Build the query by adding all chunks together.
protected buildQuery ( ) : array
리턴 array

getData() 공개 메소드

public getData ( $key = null ) : mixed
리턴 mixed

getIndices() 공개 메소드

Indices we are searching in.
public getIndices ( ) : array
리턴 array

getQueryStringParam() 보호된 메소드

protected getQueryStringParam ( string $name ) : mixed
$name string
리턴 mixed

getRawQuery() 공개 메소드

This is what will be sent to the elasticsearch SDK.
public getRawQuery ( ) : array
리턴 array

getResultParser() 공개 메소드

public getResultParser ( ) : mixed
리턴 mixed

getSearchType() 보호된 메소드

protected getSearchType ( ) : string
리턴 string

getTypes() 공개 메소드

Types we are searching in.
public getTypes ( ) : array
리턴 array

parseResultsWith() 공개 메소드

public parseResultsWith ( ElasticSearcher\Abstracts\AbstractResultParser $resultParser )
$resultParser ElasticSearcher\Abstracts\AbstractResultParser

removeQueryStringParam() 보호된 메소드

protected removeQueryStringParam ( string $name )
$name string

run() 공개 메소드

Build and execute the query.
public run ( ) : ElasticSearcher\Abstracts\AbstractResultParser
리턴 ElasticSearcher\Abstracts\AbstractResultParser

searchIn() 공개 메소드

Define on which indices and types the query should be run.
public searchIn ( string | array $index, null | string | array $type = null )
$index string | array
$type null | string | array

searchInIndices() 보호된 메소드

protected searchInIndices ( array $indices )
$indices array

searchInTypes() 보호된 메소드

protected searchInTypes ( array $types )
$types array

setQueryStringParam() 보호된 메소드

protected setQueryStringParam ( string $name, mixed $value )
$name string
$value mixed

setSearchType() 보호된 메소드

또한 보기: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-type.html
protected setSearchType ( string $type )
$type string

setup() 추상적인 보호된 메소드

...
abstract protected setup ( )

프로퍼티 상세

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

Data that can be used when building a query.
protected array $data
리턴 array

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

protected FragmentParser,ElasticSearcher\Parsers $fragmentParser
리턴 ElasticSearcher\Parsers\FragmentParser

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

Indices on which the query should be executed.
protected array $indices
리턴 array

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

Parameters to be added to the search URL.
protected array $queryStringParams
리턴 array

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

protected AbstractResultParser,ElasticSearcher\Abstracts $resultParser
리턴 ElasticSearcher\Abstracts\AbstractResultParser

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

protected ElasticSearcher,ElasticSearcher $searcher
리턴 ElasticSearcher\ElasticSearcher

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

Types on which the query should be executed.
protected array $types
리턴 array