Liking cljdoc? Tell your friends :D

lib.lucene.impl.index


add-entrycljmultimethod

adds an entry to the index

adds an entry to the index
sourceraw docstring

add-entry-directoryclj

(add-entry-directory index analyzer template entry opts)

adds an entry given directory

adds an entry given directory
sourceraw docstring

add-entry-writerclj

(add-entry-writer writer _ template entry opts)

adds an entry given writer

adds an entry given writer
sourceraw docstring

closeclj

(close directory)

closes the writer or reader

closes the writer or reader
sourceraw docstring

directorycljmultimethod

creates a lucene directory (store

(directory {:store :memory}) => org.apache.lucene.store.ByteBuffersDirectory

creates a lucene directory (store

(directory {:store :memory})
=> org.apache.lucene.store.ByteBuffersDirectory
sourceraw docstring

directory-diskclj

(directory-disk {:keys [path]})

creates a disk based directory

(directory-disk {:path "test-scratch/lib.lucene/index"}) => org.apache.lucene.store.NIOFSDirectory

creates a disk based directory

(directory-disk {:path "test-scratch/lib.lucene/index"})
=> org.apache.lucene.store.NIOFSDirectory
sourceraw docstring

directory-memoryclj

(directory-memory _)

creates a ram directory

(directory-memory {}) => org.apache.lucene.store.ByteBuffersDirectory

creates a ram directory

(directory-memory {})
=> org.apache.lucene.store.ByteBuffersDirectory
sourceraw docstring

query-termclj

(query-term terms)

creates a query term

(query-term {:id "hello"}) => org.apache.lucene.index.Term

creates a query term

(query-term {:id "hello"})
=> org.apache.lucene.index.Term
sourceraw docstring

readerclj

(reader directory)

creates an IndexReader

(reader (doto (directory {:store :memory}) (add-entry-directory (analyzer/analyzer {:type :standard}) {} {:id "hello"} nil))) => org.apache.lucene.index.StandardDirectoryReader

creates an IndexReader

(reader (doto (directory {:store :memory})
          (add-entry-directory (analyzer/analyzer {:type :standard})
                               {}
                               {:id "hello"}
                               nil)))
=> org.apache.lucene.index.StandardDirectoryReader
sourceraw docstring

remove-entrycljmultimethod

removes an entry to the index

removes an entry to the index
sourceraw docstring

remove-entry-directoryclj

(remove-entry-directory index analyzer terms opts)

removes an entry given directory

removes an entry given directory
sourceraw docstring

remove-entry-writerclj

(remove-entry-writer writer analyzer terms opts)

removes an entry given writer

removes an entry given writer
sourceraw docstring

search through the index

search through the index
sourceraw docstring

search-directoryclj

(search-directory index analyzer terms opts)

search using the directory

search using the directory
sourceraw docstring

search-readerclj

(search-reader reader
               analyzer
               terms
               {:keys [mode page-offset page-results max-results]
                :or {page-offset 0 max-results 40 page-results 20}})

search using the reader

search using the reader
sourceraw docstring

update-entrycljmultimethod

updates an entry to the index

updates an entry to the index
sourceraw docstring

update-entry-directoryclj

(update-entry-directory index analyzer template terms entry opts)

updates an entry given directory

updates an entry given directory
sourceraw docstring

update-entry-writerclj

(update-entry-writer writer analyzer template terms entry opts)

updates an entry given writer

updates an entry given writer
sourceraw docstring

writerclj

(writer directory)
(writer directory analyzer)

creates an IndexWriter

(writer (directory {:store :memory})) => org.apache.lucene.index.IndexWriter

creates an IndexWriter

(writer (directory {:store :memory}))
=> org.apache.lucene.index.IndexWriter
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close