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(null|\Elastica\Query\AbstractQuery|array $filter = null) : \Elastica\Query\ConstantScore
constant score query.
null|\Elastica\Query\AbstractQuery|array | $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|string|\Elastica\Type $type = null, array $ids = array()) : \Elastica\Query\Ids
ids query.
array|string|\Elastica\Type | $type | |
array | $ids |
match_all() : \Elastica\Query\MatchAll
match all query.
more_like_this() : \Elastica\Query\MoreLikeThis
more like this query.
nested() : \Elastica\Query\Nested
nested query.
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 |
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 |
top_children(string|\Elastica\Query\AbstractQuery|\Elastica\Query $query, string $type = null) : \Elastica\Query\TopChildren
top children query.
string|\Elastica\Query\AbstractQuery|\Elastica\Query | $query | |
string | $type |
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 |
type(string $type = null) : \Elastica\Query\Type
type query.
string | $type | Type name |
percolate() : \Elastica\Query\Percolate
type query.