Skip to main content

Constants for the fields of the /filter/bystring request.

Option fields

mode

Constants for mode.

pub const CONTAINS: &str = “contains”;

Partial substring match (not accelerated). If the column is a string type (non-charN) and the number of records is too large, it will return 0.

pub const EQUALS: &str = “equals”;

Exact whole-string match (accelerated).

pub const REGEX: &str = “regex”;

Full regular expression search (not accelerated). If the column is a string type (non-charN) and the number of records is too large, it will return 0.

pub const SEARCH: &str = “search”;

Full text search query with wildcards and boolean operators. Note that for this mode, no column can be specified in column_names; all string columns of the table that have text search enabled will be searched.

pub const SEARCH_STATS: &str = “search_stats”;

Cross-shard BM25 corpus statistics for one (column, query) pair. Returns the merged BM25 statistics (max_doc, doc_count, sum_total_term_freq, per-term doc_freq / total_term_freq) needed by callers that score documents themselves (e.g. text_match_bm25_global SQL function pre-pass). Requires column_names to contain exactly one column with text search enabled. The view_name field is ignored — this mode does not produce a result table.

pub const STARTS_WITH: &str = “starts_with”;

Strings that start with the given expression (not accelerated). If the column is a string type (non-charN) and the number of records is too large, it will return 0.

options

Constants for options.

pub const CASE_SENSITIVE: &str = “case_sensitive”;

If false then string filtering will ignore case. Does not apply to search mode.

pub const COLLECTION_NAME: &str = “collection_name”;

[DEPRECATED–please specify the containing schema for the view as part of view_name and use /create/schema to create the schema if non-existent] Name of a schema for the newly created view. If the schema is non-existent, it will be automatically created.

pub const CREATE_TEMP_TABLE: &str = “create_temp_table”;

If true, a unique temporary table name will be generated in the sys_temp schema and used in place of view_name. This is always allowed even if the caller does not have permission to create tables. The generated name is returned in qualified_view_name.

pub const FALSE: &str = “false”;
pub const TRUE: &str = “true”;