Skip to main content

tsquery_parse

Function tsquery_parse 

Source
pub fn tsquery_parse(text: &str) -> Result<Vec<QueryItem>, TypeError>
Expand description

tsqueryin: lexemes with the operators !, &, |, <-> and <N> and parentheses. A lexeme can be in quotes, as in a tsvector, and can have weights and * after a colon. A query with no lexemes is empty, and the caller sends the notice of PostgreSQL for it.

ยงErrors

42601 for bad syntax, 22023 for a distance out of range, 54000 for a lexeme or a query that is too long, XX000 for more than 32 operators that wait in one level of parentheses, and 54001 for a query that is too deep.