Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | ||
return | array |
protected getQueryStringParam ( string $name ) : mixed | ||
$name | string | |
return | mixed |
public getRawQuery ( ) : array | ||
return | array |
public parseResultsWith ( ElasticSearcher\Abstracts\AbstractResultParser $resultParser ) | ||
$resultParser | ElasticSearcher\Abstracts\AbstractResultParser |
protected removeQueryStringParam ( string $name ) | ||
$name | string |
public run ( ) : ElasticSearcher\Abstracts\AbstractResultParser | ||
return | ElasticSearcher\Abstracts\AbstractResultParser |
protected setQueryStringParam ( string $name, mixed $value ) | ||
$name | string | |
$value | mixed |
protected array $data | ||
return | array |
protected FragmentParser,ElasticSearcher\Parsers $fragmentParser | ||
return | ElasticSearcher\Parsers\FragmentParser |
protected array $indices | ||
return | array |
protected array $queryStringParams | ||
return | array |
protected AbstractResultParser,ElasticSearcher\Abstracts $resultParser | ||
return | ElasticSearcher\Abstracts\AbstractResultParser |
protected ElasticSearcher,ElasticSearcher $searcher | ||
return |
protected array $types | ||
return | array |