pyes.models¶
-
class
pyes.models.
BaseBulker
(conn, bulk_size=400, raise_on_bulk_item_failure=False)¶ Base class to implement a bulker strategy
-
add
(content)¶
-
bulk_size
¶ Get the current bulk_size
Return a int: the size of the bulk holder
-
flush_bulk
(forced=False)¶
-
get_bulk_size
()¶ Get the current bulk_size
Return a int: the size of the bulk holder
-
set_bulk_size
(bulk_size)¶ Set the bulk size
:param bulk_size the bulker size
-
-
class
pyes.models.
DotDict
¶
-
class
pyes.models.
ElasticSearchModel
(*args, **kwargs)¶ -
delete
(bulk=False)¶ Delete the object
-
get_bulk
(create=False)¶ Return bulk code
-
get_id
()¶ Force the object saveing to get an id
-
get_meta
()¶
-
reload
()¶
-
save
(bulk=False, id=None, parent=None, routing=None, force=False)¶ Save the object and returns id
-
-
class
pyes.models.
ListBulker
(conn, bulk_size=400, raise_on_bulk_item_failure=False)¶ A bulker that store data in a list
-
add
(content)¶
-
flush_bulk
(forced=False)¶
-
-
class
pyes.models.
SortedDict
(data=None)¶ A dictionary that keeps its keys in the order in which they’re inserted.
Taken from django
-
clear
()¶
-
copy
()¶ Returns a copy of this object.
-
insert
(index, key, value)¶ Inserts the key, value pair before the item with the given index.
-
items
()¶
-
iterkeys
()¶
-
itervalues
()¶
-
keys
()¶
-
pop
(k, *args)¶
-
popitem
()¶
-
setdefault
(key, default)¶
-
update
(dict_)¶
-
value_for_index
(index)¶ Returns the value of the item at the given zero-based index.
-
values
()¶
-