Свойство | Тип | Описание | |
---|---|---|---|
$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 | |||
$types | array | Types on which the query should be executed. |
Метод | Описание | |
---|---|---|
__construct ( |
||
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, . |
public __construct ( |
||
$searcher |
protected buildQuery ( ) : array | ||
Результат | array |
public getIndices ( ) : array | ||
Результат | array |
protected getQueryStringParam ( string $name ) : mixed | ||
$name | string | |
Результат | mixed |
public getRawQuery ( ) : array | ||
Результат | array |
public parseResultsWith ( ElasticSearcher\Abstracts\AbstractResultParser $resultParser ) | ||
$resultParser | ElasticSearcher\Abstracts\AbstractResultParser |
protected removeQueryStringParam ( string $name ) | ||
$name | string |
public run ( ) : ElasticSearcher\Abstracts\AbstractResultParser | ||
Результат | ElasticSearcher\Abstracts\AbstractResultParser |
protected setQueryStringParam ( string $name, mixed $value ) | ||
$name | string | |
$value | mixed |
protected array $data | ||
Результат | array |
protected FragmentParser,ElasticSearcher\Parsers $fragmentParser | ||
Результат | ElasticSearcher\Parsers\FragmentParser |
protected array $indices | ||
Результат | array |
protected array $queryStringParams | ||
Результат | array |
protected AbstractResultParser,ElasticSearcher\Abstracts $resultParser | ||
Результат | ElasticSearcher\Abstracts\AbstractResultParser |
protected ElasticSearcher,ElasticSearcher $searcher | ||
Результат |
protected array $types | ||
Результат | array |