Liking cljdoc? Tell your friends :D

lib.lucene.impl.index


add-entrycljmultimethod

adds an entry to the index

adds an entry to the index
raw docstring

add-entry-directoryclj

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

adds an entry given directory

adds an entry given directory
raw docstring

add-entry-writerclj

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

adds an entry given writer

adds an entry given writer
raw docstring

closeclj

(close directory)

closes the writer or reader

closes the writer or reader
raw 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
raw 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
raw 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
raw 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
raw 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
raw docstring

remove-entrycljmultimethod

removes an entry to the index

removes an entry to the index
raw docstring

remove-entry-directoryclj

(remove-entry-directory index analyzer terms opts)

removes an entry given directory

removes an entry given directory
raw docstring

remove-entry-writerclj

(remove-entry-writer writer analyzer terms opts)

removes an entry given writer

removes an entry given writer
raw docstring

search through the index

search through the index
raw docstring

search-directoryclj

(search-directory index analyzer terms opts)

search using the directory

search using the directory
raw 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
raw docstring

update-entrycljmultimethod

updates an entry to the index

updates an entry to the index
raw docstring

update-entry-directoryclj

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

updates an entry given directory

updates an entry given directory
raw docstring

update-entry-writerclj

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

updates an entry given writer

updates an entry given writer
raw 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
raw 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