What a search asks for, before any store sees it: the sanitized query and
the filter terms. wagoe.search.shell.query-sql turns them into SQL.
What a search asks for, before any store sees it: the sanitized query and the filter terms. `wagoe.search.shell.query-sql` turns them into SQL.
(empty-query? query)Returns true if the query is effectively empty after sanitization.
Returns true if the query is effectively empty after sanitization.
(filter-terms filters)A :filters map as [json-key value] pairs, each value a string, sorted by key so that query parameters come out in a stable order. Every term must match.
A :filters map as [json-key value] pairs, each value a string, sorted by key so that query parameters come out in a stable order. Every term must match.
(sanitize-query query)Remove FTS-unsafe characters from a user query string.
Args: query - raw user input string
Returns: Sanitized string safe for use in FTS functions, or nil
Remove FTS-unsafe characters from a user query string. Args: query - raw user input string Returns: Sanitized string safe for use in FTS functions, or nil
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |