Skip to main content
The parse query accepts a Tantivy query string. The intended use case is for accepting raw query strings provided by the end user. To use it, pass the table name or alias to the left-hand side of @@@ and pdb.parse('<query>') to the right-hand side. Passing an indexed column with pdb.parse() also remains supported.
Please refer to the Tantivy docs for an overview of the query string language.

Lenient Parsing

By default, strict syntax parsing is used. If the query has invalid syntax or names an unknown field, it fails. By setting lenient to true, the query is executed on a best-effort basis, ignoring invalid parts. Terms without a field name search across indexed fields in both modes.

Conjunction Mode

By default, terms in the query string are ORed together. With conjunction_mode set to true, they are instead ANDed together. For instance, the following query returns documents containing both sleek and shoes.