(parse-form form opts)(parse-form-query query opts)parses a query
(parse-form-query :<query> nil) => :<query>
parses a query (parse-form-query :<query> nil) => :<query>
(parse-form-seq seq opts)parses a sequential form
parses a sequential form
(parse-form-string s {:keys [builder mode key] :as opts})parses a string
parses a string
(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
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 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
compiles a query
(query #{{:id "hello"} {:id "world"}})
;; #object[org.apache.lucene.search.BooleanQuery 0x3dd55e15 "(+id:world) (+id:hello)"]
=> org.apache.lucene.search.BooleanQuerycljdoc 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 |