Indexing and searching¶
The Rapido storage system (souper) supports indexing.
Any block element can be indexed by adding a
index_type setting in its YAML
index_type setting can have two possible values:
field: such indexes match exact values, and support comparison queries, range queries, and sorting.
text: such index matches contained words (applicable for text values only).
Queries use the (CQE format.
price are existing indexes):
context.app.search( "author == 'Conrad' and 'Lord Jim' in title", sort_index="price")
Records are indexed at the time they are saved. We can force reindexing using the Python API:
We can also reindex all the records using the
refresh URL command:
or using the REST API (see REST API).