Replace rewriter: https://docs.querqy.org/querqy/rewriters/replace.html
Replace rewriter: https://docs.querqy.org/querqy/rewriters/replace.html
(delete input)
A replace rule to delete the term from any user query. This basically expands to
(replace "foo" (with nil))
A replace rule to delete the term from any user query. This basically expands to ```clojure (replace "foo" (with nil)) ```
(parse-stream stream)
(parse-stream
stream
{:keys [ignore-case delimiter parser]
:or {ignore-case true delimiter "\t" parser (WhiteSpaceQuerqyParser.)}})
Parse a stream
Parse a stream
(replace input output)
Replace the given term with another.
Example:
(replace "foos" (with "foo"))
Replace the given term with another. Example: ```clojure (replace "foos" (with "foo")) ```
(replace-rewriter & args)
Create a replace rewriter. Accepts one of
Examples:
(replace-rewriter (io/resource "my-rules.txt"))
(replace-rewriter
(replace "foo" (with "bar"))
(delete "quux"))
Create a replace rewriter. Accepts one of - a URL to a named resource for loading Querqy rules - rules specified using the replace DSL Examples: ```clojure (replace-rewriter (io/resource "my-rules.txt")) (replace-rewriter (replace "foo" (with "bar")) (delete "quux")) ```
(with output)
Intended to be used with replace. This is the target for a replace rule.
Intended to be used with replace. This is the target for a replace rule.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close