search#
- dscat.queries.search(cat, query, dataset, version, all_versions, table_name, scale, limit, raw)[source]#
Full-text search features by name, title, definition, value coding, and notes.
Query terms expand through the synonym table and run as an FTS5 BM25 match, where a lower rank is a better match. Set
rawto pass an FTS5 MATCH expression through unchanged.- Parameters:
cat (
dscat.index.Catalogue) – Open catalogue to read from.query (
str) – Search text, or a raw FTS5 MATCH expression whenrawis set.version (
strorNone) – Pin a version (needsdataset); the default scope is the latest.all_versions (
bool) – Search every version instead of only the latest.scale (
strorNone) – Keep only features with this field type or measurement scale.limit (
int) – Maximum number of rows to return.raw (
bool) – Treatqueryas a verbatim FTS5 MATCH expression.
- Returns:
Matching features with their
rank, best first.- Return type: