Liking cljdoc? Tell your friends :D

msync.lucene.document


document->mapclj

(document->map document & {:keys [fields-to-keep multi-fields]})

Convenience function. Lucene document to map. Keys are always keywords. Values come back as string. Only stored fields come back.

Convenience function.
Lucene document to map. Keys are always keywords. Values come back as string.
Only stored fields come back.
sourceraw docstring

fn:document->mapclj

(fn:document->map & opt-args)
source

fn:map->documentclj

(fn:map->document doc-opts)
source

map->documentclj

(map->document m
               {:keys [indexed-fields stored-fields keyword-fields
                       suggest-fields context-fn]})
source

suggest-field-prefixclj

source

vecs->mapsclj

(vecs->maps doc-vecs-with-header)
(vecs->maps header-vec doc-vecs)

Collection of vectors, with the first considered the header. [[field1 field2] [f11 f12] [f21 f22]] => [{:field1 f11 :field2 f22} {:field1 f21 :field2 f22}] Returns a collection of maps, where the key is the corresponding header field.

Collection of vectors, with the first considered the header.
[[field1 field2] [f11 f12] [f21 f22]] =>
[{:field1 f11 :field2 f22} {:field1 f21 :field2 f22}]
Returns a collection of maps, where the key is the corresponding header field.
sourceraw docstring

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

× close