Liking cljdoc? Tell your friends :D

com.nytimes.querqy.replace

Replace rewriter: https://docs.querqy.org/querqy/rewriters/replace.html
raw docstring

deleteclj

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

map->SequenceLookupclj

(map->SequenceLookup m)
source

parse-streamclj

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

replacecljmacro

(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"))
```
sourceraw docstring

replace-rewriterclj

(replace-rewriter & args)

Create a replace rewriter. Accepts one of

  • a URL to a named resource for loading Querqy rules
  • rules specified using the replace DSL

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"))
```
sourceraw docstring

ReplaceRewriterBuildercljprotocol

replace-rewriter*clj

(replace-rewriter* this)
source

trie->ReplaceRewriterFactoryclj

(trie->ReplaceRewriterFactory trie)
source

whitespaceclj

source

wildcardclj

source

withclj

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

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close