module Elasticsearch

Defined in:

client.cr
data_streams.cr
documents.cr
elasticsearch.cr
errors.cr
es.cr
ilm.cr
index_templates.cr
indices.cr
json_conversion.cr
mappings.cr
query.cr
serializable.cr
types.cr

Class Method Summary

Class Method Detail

def self.aggregation(terms : NamedTuple, size : Int32 | Nil = nil) #

[View source]
def self.aggregation(min : Query::Aggregations::Min) #

[View source]
def self.aggregation(avg : Query::Aggregations::Avg) #

[View source]
def self.aggregation(max : Query::Aggregations::Max) #

[View source]
def self.aggregation(percentiles : Query::Aggregations::Percentiles) #

[View source]
def self.aggregation(multi_terms : Query::Aggregations::MultiTerms) #

[View source]
def self.aggregation(date_histogram : Query::Aggregations::DateHistogram, aggregations : Query::Aggregations | Nil = nil) #

[View source]
def self.aggregations(**kwargs : Query::Aggregations::Aggregation) #

[View source]
def self.avg(field : String) #

[View source]
def self.bool(*, must = nil, filter = nil, should = nil, must_not = nil) #

[View source]
def self.date_histogram(*, field, fixed_interval = nil, calendar_interval = nil, missing = nil) #

[View source]
def self.field(field : String) #

[View source]
def self.filter(*filters : Query::Filterable) #

[View source]
def self.match(**matches : String) #

[View source]
def self.match_phrase(**kwargs) #

[View source]
def self.max(field : String) #

[View source]
def self.min(field : String) #

[View source]
def self.multi_terms(terms, size = nil) #

[View source]
def self.must(filters : Enumerable(Query::Filterable)) #

[View source]
def self.must(*filters : Query::Filterable) #

[View source]
def self.percentiles(field : String, percents : Array(String | Int | Float)) #

[View source]
def self.query(*, bool) #

[View source]
def self.range(field : String, **kwargs) #

[View source]
def self.term(field, value) #

[View source]