Add a single document to the index.
the id of the saved document.
object of the document fields to be saved and/or indexed. NOTE: Geo points should be encoded as strings of "lon,lat"
the document ranking, between 0.0 and 1.0
optional inner-index payload we can save for fast access in scoring functions
if set to true, we just index the document, and don't save a copy of it. This means that searches will just return ids.
if true, and the document already is in the index, we perform an update and reindex the document
if true, the fields specified will be added to the existing document.
This has the added benefit that any fields specified with no_index
will not be reindexed again. Implies replace
Create a new batch indexer from the client with a given chunk size
Create the search index. Creating an existing index juts updates its properties
a list of TextField or NumericField objects
Drop the index if it exists
Search the index for a given query, and return a result of documents
the search query. Either a text for simple queries with default parameters, or a Query object for complex queries. See RediSearch's documentation on query format
A dictionary of {field: snippet_size} used to trim and format the result. e.g. {'body': 500}
Generated using TypeDoc
A client for the RediSearch module. It abstracts the API of the module and lets you just use the engine