struct Elasticsearch::Documents
- Elasticsearch::Documents
- Struct
- Value
- Object
Defined in:
documents.crConstructors
Instance Method Summary
- #bulk(index_name : String, docs : Enumerable, *, refresh : Documents::Refresh = :false)
- #bulk(index_name : String, docs : Enumerable(T), *, refresh : Documents::Refresh = :false, &serialize : T -> BulkAction(T)) forall T
- #create(index_name : String, id, doc, *, refresh : Refresh = :false)
- #get(index_name : String, id, *, source : String = "", version : Int | Nil = nil, source_includes : String = "", source_excludes : String = "", as type : T.class) forall T
- #index(index_name : String, id, doc, *, refresh : Refresh = :false)
- #index(index_name : String, doc, *, refresh : Refresh = :false)
- #update_by_query(index_name : String, query, *, script : Script, requests_per_second : Int | Nil = nil, conflicts : Conflicts | Nil = nil, refresh : Bool = false)
Constructor Detail
Instance Method Detail
def bulk(index_name : String, docs : Enumerable(T), *, refresh : Documents::Refresh = :false, &serialize : T -> BulkAction(T)) forall T
#
def get(index_name : String, id, *, source : String = "", version : Int | Nil = nil, source_includes : String = "", source_excludes : String = "", as type : T.class) forall T
#