Liking cljdoc? Tell your friends :D

wagoe.search.core.query

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.
raw docstring

empty-query?clj

(empty-query? query)

Returns true if the query is effectively empty after sanitization.

Returns true if the query is effectively empty after sanitization.
sourceraw docstring

filter-termsclj

(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.
sourceraw docstring

sanitize-queryclj

(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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close