Method |
Description |
|
__construct ( Type $repository ) |
Query constructor |
|
aggregate ( array | AbstractAggregation $aggregation ) |
Add an aggregation to the elastic query object |
|
applyOptions ( array $options ) |
Populates or adds parts to current query clauses using an array. |
|
clause ( string $name ) : mixed |
Returns any data that was stored in the specified clause. This is useful for
modifying any internal part of the query and it is used during compiling
to transform the query accordingly before it is executed. The valid clauses that
can be retrieved are: fields, preFilter, postFilter, query, order, limit and offset. |
|
compileQuery ( ) : string |
Compile the Elasticsearch query. |
|
find ( $type = 'all', $options = [] ) : Query |
{@inheritDoc} |
|
highlight ( array $highlight ) |
Set the highlight options for the query. |
|
limit ( integer $limit ) |
Sets the maximum number of results to return for this query. |
|
offset ( integer $num ) |
Sets the number of records that should be skipped from the original result set
This is commonly used for paginating large results. Accepts an integer. |
|
order ( string | array $order, boolean $overwrite = false ) |
Sets the sorting options for the result set. |
|
page ( integer $num, integer $limit = null ) |
Set the page of results you want. |
|
postFilter ( array | callable | Elastica\Filter\AbstractFilter $conditions, boolean $overwrite = false ) |
Sets the filter to use in the post_filter object. Filters added using this method
will be stacked on a bool filter. |
|
query ( array $matcher ) |
Method to set the query |
|
searchOptions ( array $options = null ) |
Set or get the search options |
|
select ( array $fields, boolean $overwrite = false ) |
Adds fields to be selected from _source. |
|
where ( array | callable | Elastica\Filter\AbstractFilter $conditions, boolean $overwrite = false ) |
Sets the filter to use in a FilteredQuery object. Filters added using this method
will be stacked on a bool filter and applied to the filter part of a filtered query. |
|