lib.lucene.impl.query

FormParsable

protocol

members

parse-form

(parse-form form opts)

parse-form-map

added in 3.0

(parse-form-map map opts)

parses a map form

parse-form-query

added in 3.0

(parse-form-query query opts)

parses a query

(parse-form-query : nil) => :

parse-form-seq

added in 3.0

(parse-form-seq seq opts)

parses a sequential form

parse-form-set

added in 3.0

(parse-form-set set opts)

parses a set form

parse-form-string

added in 3.0

(parse-form-string s {:keys [builder mode key], :as opts})

parses a string

parse-string

added in 3.0

(parse-string analyzer default-field-name query-string)

helper for parse-form-string

(parse-string -analyzer- “id” “hello”) ;; #object[org.apache.lucene.search.TermQuery 0x487193be “id:hello”] => org.apache.lucene.search.TermQuery

query

added in 3.0

(query form)(query form {:keys [analyzer mode], :as opts, :or {analyzer (analyzer/analyzer {:type :standard}), mode :query}})

compiles a query

(query #{{:id “hello”} {:id “world”}}) ;; #object[org.apache.lucene.search.BooleanQuery 0x3dd55e15 “(+id:world) (+id:hello)”] => org.apache.lucene.search.BooleanQuery