PG search parse query
pg_search_parse_queryParse a query string to verify its canonical form and confirm parser interpretation. Use with lenient or conjunction mode for relaxed syntax or AND-join behavior.
Instructions
Parse a query string through pdb.parse and return its canonical text form for debugging — useful for confirming the parser interpreted a phrase as expected. lenient=True relaxes syntax checking; conjunction_mode=True treats space-separated terms as AND-joined rather than OR-joined. Requires the pg_search extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lenient | No | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. | |
| query_string | Yes | ||
| conjunction_mode | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parsed | Yes |