PHP 클래스 Elastica\QueryBuilder\DSL\Query

상속: implements Elastica\QueryBuilder\DSL
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

공개 메소드들

메소드 설명
bool ( ) : BoolQuery bool query.
boosting ( ) : Elastica\Query\Boosting boosting query.
common_terms ( string $field, string $query, float $cutoffFrequency ) : Common common terms query.
constant_score ( null | Elastica\Query\AbstractQuery | array $filter = null ) : ConstantScore constant score query.
custom_boost_factor ( ) custom boost factor query.
custom_filters_score ( ) custom filters score query.
custom_score ( ) custom score query.
dis_max ( ) : Elastica\Query\DisMax dis max query.
exists ( string $field ) : Elastica\Query\Exists exists query.
field ( ) field query.
function_score ( ) : FunctionScore function score query.
fuzzy ( string $fieldName = null, string $value = null ) : Fuzzy fuzzy query.
fuzzy_like_this ( ) : FuzzyLikeThis fuzzy like this query.
fuzzy_like_this_field ( ) fuzzy like this field query.
geo_distance ( string $key, array | string $location, string $distance ) : Elastica\Query\GeoDistance geo distance query.
geo_shape ( ) geo shape query.
getType ( ) : string must return type for QueryBuilder usage.
has_child ( string | Query | Elastica\Query\AbstractQuery $query, string $type = null ) : HasChild has child query.
has_parent ( string | Query | Elastica\Query\AbstractQuery $query, string $type ) : Elastica\Query\HasParent has parent query.
ids ( array | string | Type $type = null, array $ids = [] ) : Ids ids query.
indices ( ) indices query.
match ( string $field = null, mixed $values = null ) : Match match query.
match_all ( ) : Elastica\Query\MatchAll match all query.
minimum_should_match ( ) minimum should match query.
more_like_this ( ) : MoreLikeThis more like this query.
multi_match ( ) : MultiMatch multi match query.
nested ( ) : Nested nested query.
percolate ( ) : Percolate type query.
prefix ( array $prefix = [] ) : Prefix prefix query.
query_string ( string $queryString = '' ) : QueryString query string query.
range ( string $fieldName = null, array $args = [] ) : Range range query.
regexp ( string $key = '', string $value = null, float $boost = 1 ) : Regexp regexp query.
simple_query_string ( string $query, array $fields = [] ) : SimpleQueryString simple_query_string query.
span_first ( ) span first query.
span_multi_term ( ) span multi term query.
span_near ( ) span near query.
span_not ( ) span not query.
span_or ( ) span or query.
span_term ( ) span term query.
template ( ) template query.
term ( array $term = [] ) : Term term query.
terms ( string $key = '', array $terms = [] ) : Terms terms query.
text ( ) text query.
top_children ( string | Elastica\Query\AbstractQuery | Query $query, string $type = null ) : Elastica\Query\TopChildren top children query.
type ( string $type = null ) : Type type query.
wildcard ( string $key = '', string $value = null, float $boost = 1 ) : Wildcard wildcard query.

메소드 상세

bool() 공개 메소드

bool query.
public bool ( ) : BoolQuery
리턴 Elastica\Query\BoolQuery

boosting() 공개 메소드

boosting query.
public boosting ( ) : Elastica\Query\Boosting
리턴 Elastica\Query\Boosting

common_terms() 공개 메소드

common terms query.
public common_terms ( string $field, string $query, float $cutoffFrequency ) : Common
$field string
$query string
$cutoffFrequency float percentage in decimal form (.001 == 0.1%)
리턴 Elastica\Query\Common

constant_score() 공개 메소드

constant score query.
public constant_score ( null | Elastica\Query\AbstractQuery | array $filter = null ) : ConstantScore
$filter null | Elastica\Query\AbstractQuery | array
리턴 Elastica\Query\ConstantScore

custom_boost_factor() 공개 메소드

custom boost factor query.
public custom_boost_factor ( )

custom_filters_score() 공개 메소드

custom filters score query.

custom_score() 공개 메소드

custom score query.
public custom_score ( )

dis_max() 공개 메소드

dis max query.
public dis_max ( ) : Elastica\Query\DisMax
리턴 Elastica\Query\DisMax

exists() 공개 메소드

exists query.
public exists ( string $field ) : Elastica\Query\Exists
$field string
리턴 Elastica\Query\Exists

field() 공개 메소드

field query.
public field ( )

function_score() 공개 메소드

function score query.
public function_score ( ) : FunctionScore
리턴 Elastica\Query\FunctionScore

fuzzy() 공개 메소드

fuzzy query.
public fuzzy ( string $fieldName = null, string $value = null ) : Fuzzy
$fieldName string Field name
$value string String to search for
리턴 Elastica\Query\Fuzzy

fuzzy_like_this() 공개 메소드

fuzzy like this query.
public fuzzy_like_this ( ) : FuzzyLikeThis
리턴 FuzzyLikeThis

fuzzy_like_this_field() 공개 메소드

fuzzy like this field query.

geo_distance() 공개 메소드

geo distance query.
public geo_distance ( string $key, array | string $location, string $distance ) : Elastica\Query\GeoDistance
$key string
$location array | string
$distance string
리턴 Elastica\Query\GeoDistance

geo_shape() 공개 메소드

geo shape query.
public geo_shape ( )

getType() 공개 메소드

must return type for QueryBuilder usage.
public getType ( ) : string
리턴 string

has_child() 공개 메소드

has child query.
public has_child ( string | Query | Elastica\Query\AbstractQuery $query, string $type = null ) : HasChild
$query string | Elastica\Query | Elastica\Query\AbstractQuery
$type string Parent document type
리턴 Elastica\Query\HasChild

has_parent() 공개 메소드

has parent query.
public has_parent ( string | Query | Elastica\Query\AbstractQuery $query, string $type ) : Elastica\Query\HasParent
$query string | Elastica\Query | Elastica\Query\AbstractQuery
$type string Parent document type
리턴 Elastica\Query\HasParent

ids() 공개 메소드

ids query.
public ids ( array | string | Type $type = null, array $ids = [] ) : Ids
$type array | string | Elastica\Type
$ids array
리턴 Elastica\Query\Ids

indices() 공개 메소드

indices query.
public indices ( )

match() 공개 메소드

match query.
public match ( string $field = null, mixed $values = null ) : Match
$field string
$values mixed
리턴 Elastica\Query\Match

match_all() 공개 메소드

match all query.
public match_all ( ) : Elastica\Query\MatchAll
리턴 Elastica\Query\MatchAll

minimum_should_match() 공개 메소드

minimum should match query.

more_like_this() 공개 메소드

more like this query.
public more_like_this ( ) : MoreLikeThis
리턴 Elastica\Query\MoreLikeThis

multi_match() 공개 메소드

multi match query.
public multi_match ( ) : MultiMatch
리턴 Elastica\Query\MultiMatch

nested() 공개 메소드

nested query.
public nested ( ) : Nested
리턴 Elastica\Query\Nested

percolate() 공개 메소드

type query.
public percolate ( ) : Percolate
리턴 Elastica\Query\Percolate

prefix() 공개 메소드

prefix query.
public prefix ( array $prefix = [] ) : Prefix
$prefix array Prefix array
리턴 Elastica\Query\Prefix

query_string() 공개 메소드

query string query.
public query_string ( string $queryString = '' ) : QueryString
$queryString string OPTIONAL Query string for object
리턴 Elastica\Query\QueryString

range() 공개 메소드

range query.
public range ( string $fieldName = null, array $args = [] ) : Range
$fieldName string
$args array
리턴 Elastica\Query\Range

regexp() 공개 메소드

regexp query.
public regexp ( string $key = '', string $value = null, float $boost = 1 ) : Regexp
$key string
$value string
$boost float
리턴 Elastica\Query\Regexp

simple_query_string() 공개 메소드

simple_query_string query.
public simple_query_string ( string $query, array $fields = [] ) : SimpleQueryString
$query string
$fields array
리턴 Elastica\Query\SimpleQueryString

span_first() 공개 메소드

span first query.
public span_first ( )

span_multi_term() 공개 메소드

span multi term query.
public span_multi_term ( )

span_near() 공개 메소드

span near query.
public span_near ( )

span_not() 공개 메소드

span not query.
public span_not ( )

span_or() 공개 메소드

span or query.
public span_or ( )

span_term() 공개 메소드

span term query.
public span_term ( )

template() 공개 메소드

template query.
public template ( )

term() 공개 메소드

term query.
public term ( array $term = [] ) : Term
$term array
리턴 Elastica\Query\Term

terms() 공개 메소드

terms query.
public terms ( string $key = '', array $terms = [] ) : Terms
$key string
$terms array
리턴 Elastica\Query\Terms

text() 공개 메소드

text query.
public text ( )

top_children() 공개 메소드

top children query.
public top_children ( string | Elastica\Query\AbstractQuery | Query $query, string $type = null ) : Elastica\Query\TopChildren
$query string | Elastica\Query\AbstractQuery | Elastica\Query
$type string
리턴 Elastica\Query\TopChildren

type() 공개 메소드

type query.
public type ( string $type = null ) : Type
$type string Type name
리턴 Elastica\Query\Type

wildcard() 공개 메소드

wildcard query.
public wildcard ( string $key = '', string $value = null, float $boost = 1 ) : Wildcard
$key string OPTIONAL Wildcard key
$value string OPTIONAL Wildcard value
$boost float OPTIONAL Boost value (default = 1)
리턴 Elastica\Query\Wildcard