(doc-values-type s)returns the doc values type enum
(doc-values-type "NONE") => org.apache.lucene.index.DocValuesType/NONE
returns the doc values type enum (doc-values-type "NONE") => org.apache.lucene.index.DocValuesType/NONE
(document {:keys [fields] :as m})constructs a document
(document {:fields [{:name "hello" :value "world" :type {}}]})
constructs a document
(document {:fields [{:name "hello" :value "world" :type {}}]})(document-display m)display function for document
display function for document
(document-set-fields document fields)setters for document fields
(-> (document {}) (document-set-fields [{:name "hello" :value "world" :type {}}]))
setters for document fields
(-> (document {})
(document-set-fields [{:name "hello" :value "world" :type {}}]))(field {:keys [name value type] :as m})constructor for field
constructor for field
(field-construct name value type)constructs a field
(field-construct "hello" "world" {}) ;; #field{:name "hello", :type {:index [:freq :doc]}, :length 5} => org.apache.lucene.document.Field
constructs a field
(field-construct "hello" "world" {})
;; #field{:name "hello", :type {:index [:freq :doc]}, :length 5}
=> org.apache.lucene.document.Field(field-type {:keys [tokenized stored omit-norms doc-values-type] :as m})constructs a field type
(field-type {:tokenized false :index #{}}) ;; #field.type{:tokenized false, :index []} => org.apache.lucene.document.FieldType
constructs a field type
(field-type {:tokenized false :index #{}})
;; #field.type{:tokenized false, :index []}
=> org.apache.lucene.document.FieldType(field-type-display m)returns field types that are not defaults
(field-type-display {:tokenized false :stored true}) => (contains {:tokenized false})
returns field types that are not defaults
(field-type-display {:tokenized false
:stored true})
=> (contains {:tokenized false})(field-type-get-index ft)gets the field type index value
(field-type-get-index (field-type {})) => #{:freq :doc}
gets the field type index value
(field-type-get-index (field-type {}))
=> #{:freq :doc}(field-type-set-index ft value)sets the field type index value
(field-type-set-index (field-type {}) #{:doc})
sets the field type index value
(field-type-set-index (field-type {}) #{:doc})(field-value field value)setter for field value (-> (field-value (field-construct "hello" "" {}) "world") (.stringValue)) => "world"
setter for field value
(-> (field-value (field-construct "hello" "" {})
"world")
(.stringValue))
=> "world"(from-map m)(from-map m template)turns a map into a document
(from-map {:hello "world"} nil) => org.apache.lucene.document.Document
turns a map into a document
(from-map {:hello "world"} nil)
=> org.apache.lucene.document.Document(to-map document)turns the document into a map
(-> (document {:fields [{:name "hello" :value "world" :type {}}]}) to-map) => {:hello "world"}
turns the document into a map
(-> (document {:fields [{:name "hello" :value "world" :type {}}]})
to-map)
=> {:hello "world"}cljdoc 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 |