LuceneSearchOperationsBuilder

data class LuceneSearchOperationsBuilder(name: String = "lucene-search", embeddingService: EmbeddingService? = null, chunkerConfig: <Error class: unknown class> = ContentChunker.Config(), chunkTransformer: <Error class: unknown class> = ChunkTransformer.NO_OP, indexPath: Path? = null)

Builder for LuceneSearchOperations instances.

Constructors

Link copied to clipboard
constructor(name: String = "lucene-search", embeddingService: EmbeddingService? = null, chunkerConfig: <Error class: unknown class> = ContentChunker.Config(), chunkTransformer: <Error class: unknown class> = ChunkTransformer.NO_OP, indexPath: Path? = null)

Functions

Link copied to clipboard
Link copied to clipboard

Builds the LuceneSearchOperations and loads existing chunks from disk.

Link copied to clipboard
open fun withChunkerConfig(chunkerConfig: <Error class: unknown class>): LuceneSearchOperationsBuilder
Link copied to clipboard
open fun withChunkTransformer(chunkTransformer: <Error class: unknown class>): LuceneSearchOperationsBuilder
Link copied to clipboard
open fun withContentChunker(contentChunker: <Error class: unknown class>): LuceneSearchOperationsBuilder
Link copied to clipboard
Link copied to clipboard

Sets the path where the Lucene index will be stored. If not set, storage will be in memory only.

Link copied to clipboard