struct Elasticsearch::Client::SearchQuery(QueryType, AggregationType)

Included Modules

Defined in:

client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(query : QueryType, from : Int32 | Int64 | Nil = nil, fields : Nil | Array(String) = nil, size : Int32 | Int64 | Nil = nil, aggregations : AggregationType | Nil = nil, source : Bool | String | Nil = nil, sort : Array(Hash(String, Elasticsearch::SortScript | Hash(String, String) | String)) | Hash(String, Elasticsearch::SortScript | Hash(String, String) | String) | Nil = nil, track_scores : Bool | Nil = nil, profile : Bool | Nil = nil) #

[View source]

Instance Method Detail

def aggregations : AggregationType | Nil #

[View source]
def fields : Array(String) | Nil #

[View source]
def from : Int64 | Int32 | Nil #

[View source]
def profile? : Bool | Nil #

[View source]
def query : QueryType #

[View source]
def size : Int64 | Int32 | Nil #

[View source]
def sort : Sort | Array(Sort) | Nil #

[View source]
def source : String | Bool | Nil #

[View source]
def track_scores? : Bool | Nil #

[View source]