Method |
Description |
|
__construct ( Connection $connection, ONGR\ElasticsearchDSL\Search $grammar = null ) |
Builder constructor. |
|
aggregate ( Closure $closure ) |
Add aggregation. |
|
append ( $query ) |
Append a query. |
|
commonTerm ( $field, $term, array $attributes = [] ) |
Add a common term query. |
|
exists ( string | array $fields ) |
Add an exists query. |
|
filter ( ) |
Switch to a filter query. |
|
from ( integer $offset ) |
Set the query from/offset value. |
|
fuzzy ( $field, $term, array $attributes = [] ) |
Add a fuzzy query. |
|
geoBoundingBox ( string $field, array $values, array $parameters = [] ) |
Add a geo bounding box query. |
|
geoDistance ( string $field, string $distance, mixed $location, array $attributes = [] ) |
Add a geo distance query. |
|
geoDistanceRange ( string $field, $from, $to, array $location, array $attributes = [] ) |
Add a geo distance range query. |
|
geoHash ( string $field, mixed $location, array $attributes = [] ) |
Add a geo hash query. |
|
geoPolygon ( string $field, array $points = [], array $attributes = [] ) |
Add a geo polygon query. |
|
get ( ) : PlasticResult |
Execute the search query against elastic and return the raw result if the model is not set. |
|
getBoolState ( ) : string |
Return the boolean query state. |
|
getConnection ( ) : Connection |
Return the current plastic connection. |
|
getFilteringState ( ) : string |
Return the filtering state. |
|
getIndex ( ) : string |
Return the current elastic index. |
|
getModelFiller ( ) : Sleimanx2\Plastic\Fillers\FillerInterface |
get the model filler to use after retrieving the results. |
|
getRaw ( ) : array |
Execute the search query against elastic and return the raw result. |
|
getType ( ) : string |
Return the current elastic type. |
|
ids ( array | string $ids ) |
Add an ids query. |
|
index ( string $index ) |
Set the elastic index to query against. |
|
match ( string $field, string $term, array $attributes = [] ) |
Add a match query. |
|
matchAll ( float | null $boost = 1 ) |
Add a boost query. |
|
minScore ( $score ) |
Set the query min score value. |
|
model ( Model $model ) |
Set the eloquent model to use when querying elastic search. |
|
multiMatch ( array $fields, string $term, array $attributes = [] ) |
Add a multi match query. |
|
must ( ) |
Switch to a must statement. |
|
mustNot ( ) |
Switch to a must not statement. |
|
nested ( $field, Closure $closure, string $score_mode = 'avg' ) |
Add a nested query. |
|
paginate ( integer $limit = 25 ) : PlasticPaginator |
Paginate result hits. |
|
prefix ( string $field, string $term, array $attributes = [] ) |
Add a prefix query. |
|
query ( ) |
Switch to a regular query. |
|
queryString ( string $query, array $attributes = [] ) |
Add a query string query. |
|
range ( string $field, array $attributes = [] ) |
Add a range query. |
|
regexp ( string $field, $regex, array $attributes = [] ) |
Add a regexp query. |
|
setModelFiller ( Sleimanx2\Plastic\Fillers\FillerInterface $filler ) |
Set the model filler to use after retrieving the results. |
|
should ( ) |
Switch to a should statement. |
|
simpleQueryString ( string $query, array $attributes = [] ) |
Add a simple query string query. |
|
size ( integer $limit ) |
Set the query limit/size value. |
|
sortBy ( string | array $fields, null $order = null, array $parameters = [] ) |
Set the query sort values values. |
|
term ( string $field, string $term, array $attributes = [] ) |
Add an term query. |
|
terms ( string $field, array $terms, array $attributes = [] ) |
Add an terms query. |
|
toDSL ( ) : array |
Return the DSL query. |
|
type ( string $type ) |
Set the elastic type to query against. |
|
wildcard ( string $field, string $value, float $boost = 1 ) |
Add a wildcard query. |
|