class Elasticsearch::Client
- Elasticsearch::Client
- Reference
- Object
Defined in:
client.crdata_streams.cr
documents.cr
ilm.cr
index_templates.cr
indices.cr
mappings.cr
Constructors
Instance Method Summary
- #data_streams
- #delete(path : String)
- #docs
- #documents
- #get(path : String, &block : HTTP::Client::Response -> )
- #get(path : String)
- #ilm
- #index_templates
- #indexes
- #indices
- #mappings
- #post(path : String, body : String | IO)
- #post(path : String, body : String | IO, &)
- #put(path : String, body : String? = nil, &block : HTTP::Client::Response -> )
- #put(path : String, body : String? = nil)
- #search(index_name : String | Enumerable(String), query, *, as type : T.class, from : Int? = nil, size : Int? = nil, aggregations = nil, sort = nil) forall T
- #search(index_name : String | Enumerable(String), *, match_all, from = nil, sort = nil, size = nil, aggregations = nil, as type : T.class = JSON::Any) forall T
- #search(index_name : String | Enumerable(String), *, simple_query_string query : String, default_operator = nil, analyzer = nil, from = nil, sort = nil, size = nil, aggregations = nil, as type : T.class = JSON::Any) forall T
- #search(index_name : String | Enumerable(String), *, query_string query : String, query_string_options = NamedTuple.new, from = nil, sort = nil, size = nil, aggregations = nil, as type : T.class = JSON::Any) forall T
Constructor Detail
def self.new(uri : URI = URI.parse(ENV.fetch("ELASTICSEARCH_URL", "http://localhost:9200/")), tls : HTTP::Client::TLSContext = uri.scheme == "https", max_idle_connections = 25)
#
Instance Method Detail
def indexes
#
DEPRECATED Elasticsearch uses #indices
as the plural for 'index', so please Use the #indices
method instead.
def search(index_name : String | Enumerable(String), query, *, as type : T.class, from : Int? = nil, size : Int? = nil, aggregations = nil, sort = nil) forall T
#
def search(index_name : String | Enumerable(String), *, match_all, from = nil, sort = nil, size = nil, aggregations = nil, as type : T.class = JSON::Any) forall T
#
def search(index_name : String | Enumerable(String), *, simple_query_string query : String, default_operator = nil, analyzer = nil, from = nil, sort = nil, size = nil, aggregations = nil, as type : T.class = JSON::Any) forall T
#
def search(index_name : String | Enumerable(String), *, query_string query : String, query_string_options = NamedTuple.new, from = nil, sort = nil, size = nil, aggregations = nil, as type : T.class = JSON::Any) forall T
#