(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.
(map->document m
{:keys [indexed-fields stored-fields keyword-fields
suggest-fields context-fn]})
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close