struct Elasticsearch::Documents

Defined in:

documents.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client : Client) #

[View source]

Instance Method Detail

def bulk(index_name : String, docs : Enumerable, *, refresh : Documents::Refresh = :false) #

[View source]
def bulk(index_name : String, docs : Enumerable(T), *, refresh : Documents::Refresh = :false, &serialize : T -> BulkAction(T)) forall T #

[View source]
def create(index_name : String, id, doc, *, refresh : Refresh = :false) #

[View source]
def get(index_name : String, id, *, source : String = "", version : Int | Nil = nil, source_includes : String = "", source_excludes : String = "", as type : T.class) forall T #

[View source]
def index(index_name : String, id, doc, *, refresh : Refresh = :false) #

[View source]
def index(index_name : String, doc, *, refresh : Refresh = :false) #

[View source]
def update_by_query(index_name : String, query, *, script : Script, requests_per_second : Int | Nil = nil, conflicts : Conflicts | Nil = nil, refresh : Bool = false) #

[View source]