getType()
getType() : string
must return type for QueryBuilder usage.
elasticsearch query DSL.
match(string $field = null, mixed $values = null) : \Elastica\Query\Match
match query.
string | $field | |
mixed | $values |
multi_match() : \Elastica\Query\MultiMatch
multi match query.
bool() : \Elastica\Query\BoolQuery
bool query.
boosting() : \Elastica\Query\Boosting
boosting query.
common_terms(string $field, string $query, float $cutoffFrequency) : \Elastica\Query\Common
common terms query.
string | $field | |
string | $query | |
float | $cutoffFrequency | percentage in decimal form (.001 == 0.1%) |
constant_score(\Elastica\Query\AbstractQuery|null $filter = null) : \Elastica\Query\ConstantScore
constant score query.
\Elastica\Query\AbstractQuery|null | $filter |
dis_max() : \Elastica\Query\DisMax
dis max query.
function_score() : \Elastica\Query\FunctionScore
function score query.
fuzzy(string $fieldName = null, string $value = null) : \Elastica\Query\Fuzzy
fuzzy query.
string | $fieldName | Field name |
string | $value | String to search for |
has_child(string|\Elastica\Query|\Elastica\Query\AbstractQuery $query, string $type = null) : \Elastica\Query\HasChild
has child query.
string|\Elastica\Query|\Elastica\Query\AbstractQuery | $query | |
string | $type | Parent document type |
has_parent(string|\Elastica\Query|\Elastica\Query\AbstractQuery $query, string $type) : \Elastica\Query\HasParent
has parent query.
string|\Elastica\Query|\Elastica\Query\AbstractQuery | $query | |
string | $type | Parent document type |
ids(array $ids = array()) : \Elastica\Query\Ids
ids query.
array | $ids |
match_all() : \Elastica\Query\MatchAll
match all query.
match_none() : \Elastica\Query\MatchNone
match none query.
more_like_this() : \Elastica\Query\MoreLikeThis
more like this query.
nested() : \Elastica\Query\Nested
nested query.
parent_id(string $type, integer|string $id, boolean $ignoreUnmapped = false) : \Elastica\Query\ParentId
string | $type | |
integer|string | $id | |
boolean | $ignoreUnmapped |
ParentId
prefix(array $prefix = array()) : \Elastica\Query\Prefix
prefix query.
array | $prefix | Prefix array |
query_string(string $queryString = '') : \Elastica\Query\QueryString
query string query.
string | $queryString | OPTIONAL Query string for object |
simple_query_string(string $query, array $fields = array()) : \Elastica\Query\SimpleQueryString
simple_query_string query.
string | $query | |
array | $fields |
range(string $fieldName = null, array $args = array()) : \Elastica\Query\Range
range query.
string | $fieldName | |
array | $args |
regexp(string $key = '', string $value = null, float $boost = 1.0) : \Elastica\Query\Regexp
regexp query.
string | $key | |
string | $value | |
float | $boost |
span_first(\Elastica\Query\AbstractQuery|array $match = null, integer $end = null) : \Elastica\Query\SpanFirst
span first query.
\Elastica\Query\AbstractQuery|array | $match | |
integer | $end |
span_multi_term(\Elastica\Query\AbstractQuery|array $match = null) : \Elastica\Query\SpanMulti
span multi term query.
\Elastica\Query\AbstractQuery|array | $match |
span_near(array $clauses = array(), integer $slop = 1, boolean $inOrder = false) : \Elastica\Query\SpanNear
span near query.
array | $clauses | |
integer | $slop | |
boolean | $inOrder |
span_not(\Elastica\Query\AbstractSpanQuery|null $include = null, \Elastica\Query\AbstractSpanQuery|null $exclude = null) : \Elastica\Query\SpanNot
span not query.
\Elastica\Query\AbstractSpanQuery|null | $include | |
\Elastica\Query\AbstractSpanQuery|null | $exclude |
span_or(array $clauses = array()) : \Elastica\Query\SpanOr
span_or query.
array | $clauses |
span_term(array $term = array()) : \Elastica\Query\SpanTerm
span_term query.
array | $term |
span_containing(\Elastica\Query\AbstractSpanQuery|null $little = null, \Elastica\Query\AbstractSpanQuery|null $big = null) : \Elastica\Query\SpanContaining
span_containing query.
\Elastica\Query\AbstractSpanQuery|null | $little | |
\Elastica\Query\AbstractSpanQuery|null | $big |
span_within(\Elastica\Query\AbstractSpanQuery|null $little = null, \Elastica\Query\AbstractSpanQuery|null $big = null) : \Elastica\Query\SpanWithin
span_within query.
\Elastica\Query\AbstractSpanQuery|null | $little | |
\Elastica\Query\AbstractSpanQuery|null | $big |
term(array $term = array()) : \Elastica\Query\Term
term query.
array | $term |
terms(string $key = '', array $terms = array()) : \Elastica\Query\Terms
terms query.
string | $key | |
array | $terms |
wildcard(string $key = '', string $value = null, float $boost = 1.0) : \Elastica\Query\Wildcard
wildcard query.
string | $key | OPTIONAL Wildcard key |
string | $value | OPTIONAL Wildcard value |
float | $boost | OPTIONAL Boost value (default = 1) |
geo_distance(string $key, array|string $location, string $distance) : \Elastica\Query\GeoDistance
geo distance query.
string | $key | |
array|string | $location | |
string | $distance |
exists(string $field) : \Elastica\Query\Exists
exists query.
string | $field |
percolate() : \Elastica\Query\Percolate
type query.