cassandra.datastax.graph.fluent.predicates

class cassandra.datastax.graph.fluent.predicates.Search[source]
static token(value)[source]

Search any instance of a certain token within the text property targeted. :param value: the value to look for.

static token_prefix(value)[source]

Search any instance of a certain token prefix withing the text property targeted. :param value: the value to look for.

static token_regex(value)[source]

Search any instance of the provided regular expression for the targeted property. :param value: the value to look for.

static prefix(value)[source]

Search for a specific prefix at the beginning of the text property targeted. :param value: the value to look for.

static regex(value)[source]

Search for this regular expression inside the text property targeted. :param value: the value to look for.

static fuzzy(value, distance)[source]

Search for a fuzzy string inside the text property targeted. :param value: the value to look for. :param distance: The distance for the fuzzy search. ie. 1, to allow a one-letter misspellings.

static token_fuzzy(value, distance)[source]

Search for a token fuzzy inside the text property targeted. :param value: the value to look for. :param distance: The distance for the token fuzzy search. ie. 1, to allow a one-letter misspellings.

static phrase(value, proximity)[source]

Search for a phrase inside the text property targeted. :param value: the value to look for. :param proximity: The proximity for the phrase search. ie. phrase(‘David Felcey’, 2).. to find ‘David Felcey’ with up to two middle names.

class cassandra.datastax.graph.fluent.predicates.Geo[source]
static inside(value, units=1)[source]

Search any instance of geometry inside the Distance targeted. :param value: A Distance to look for. :param units: The units for value. See GeoUnit enum. (Can also provide an integer to use as a multiplier to convert value to degrees.)