pyes.utils

pyes.utils.clean_string(text)

Remove Lucene reserved characters from query string

class pyes.utils.ESRange(field, from_value=None, to_value=None, include_lower=None, include_upper=None, **kwargs)
negate()

Reverse the range

serialize()
class pyes.utils.ESRangeOp(field, op1, value1, op2=None, value2=None)
pyes.utils.string_b64encode(s)

This function is useful to convert a string to a valid id to be used in ES. You can use it to generate an ID for urls or some texts

pyes.utils.string_b64decode(s)
pyes.utils.make_path(*path_components)

Smash together the path components. Empty components will be ignored.

pyes.utils.make_id(value)

Build a string id from a value :param value: a text value :return: a string