use query w/ the given search-service.
the origin search-service to use.
Protected
Readonly
serviceProtected
optionsget options
convert result as QueryResult
QueryResult
the query body requested
the result
convert AutocompleteSearchParam
to SearchBody
SearchBody
AutocompleteSearchParam
build query parameter from search param.
query all by id.
Optional
limit: numberOptional
isDesc: booleansearch with raw query language.
results.
SearchBody.
Optional
searchType: SearchTypesearch item in Search-as-You-Type way
AutocompleteSearchParam
search in simple mode
기본적으로 'mini-language'를 그대로 지원하도록한다.
입력의 파라마터의 키값은 테스트할 필드들이다. {"stock":">1"} => query_string : "stock:>1"
파라미터 예약: $query : ES _search 용 쿼리를 그대로 이용. $exist : 'a,!b,c' => a AND NOT b AND c 를 exists 항목으로 풀어씀. $source : _source 항목에 포함될 내용. (undefined => _source:false) $limit : same as "size" $page : same as "from" / "size" ($limit 를 ipp 으로 함축하여 이용).
[Mini-Language]
# find title field which contains quick or brown.
title:(quick OR brown)
# not-null value.
_exists_:title
# regular exp.
name:/joh?n(ath[oa]n)/
참고: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax 참고: http://okfnlabs.org/blog/2013/07/01/elasticsearch-query-tutorial.html
search param
Generated using TypeDoc
class:
Elastic6QueryService