KeywordSearchStrategy

class KeywordSearchStrategy(val topK: Int = 10, val similarityThreshold: Double = 0.0, val filterExpression: String? = null) : SearchStrategy(source)

Keyword search mode using full-text/lexical matching.

This mode uses traditional text matching instead of vector similarity, which can be useful for exact term matching or when semantic search is not needed.

Constructors

Link copied to clipboard
constructor(topK: Int = 10, similarityThreshold: Double = 0.0, filterExpression: String? = null)

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard

Optional metadata filter expression for pre-filtering

Link copied to clipboard

Minimum similarity score (0.0 to 1.0)

Link copied to clipboard
val topK: Int

Maximum number of results to return

Functions

Link copied to clipboard
open override fun create(query: String): SearchRequest

Maps a query string into a SearchRequest for the storage.