Elasticsearch::Documents
Inherits Struct < Value < Object
Constructors
new(client : Client)
SourceInstance methods
bulk(index_name : String, docs : Enumerable, *, refresh : Documents::Refresh = :false)
Sourcebulk(index_name : String, docs : Enumerable(T), *, refresh : Documents::Refresh = :false, &serialize : T -> BulkAction(T)) forall T
Sourcecreate(index_name : String, id, doc, *, refresh : Refresh = :false)
Sourceget(index_name : String, id, *, source : String = "", version : Int | Nil = nil, source_includes : String = "", source_excludes : String = "", as type : T.class) forall T
Sourceindex(index_name : String, id, doc, *, refresh : Refresh = :false)
Sourceindex(index_name : String, doc, *, refresh : Refresh = :false)
Sourceupdate_by_query(index_name : String, query, *, script : Script, requests_per_second : Int | Nil = nil, conflicts : Conflicts | Nil = nil, refresh : Bool = false)
Source