KeywordSearchRequest

data class KeywordSearchRequest(val queryText: String, val limit: Int = 10, val offset: Int = 0, val minScore: Double? = null, val filterExpression: String? = null) : SearchRequest, HasTextQuery, HasScoreThreshold, HasFilterExpression(source)

A search request that performs keyword-based (lexical) search using the provided query text.

Constructors

Link copied to clipboard
constructor(queryText: String, limit: Int = 10, offset: Int = 0, minScore: Double? = null, filterExpression: String? = null)

Properties

Link copied to clipboard
open override val filterExpression: String?

optional filter expression to narrow down results

Link copied to clipboard
open override val limit: Int

maximum number of results to return (default: 10)

Link copied to clipboard
open override val minScore: Double?

optional minimum relevance score threshold

Link copied to clipboard
open override val offset: Int

number of results to skip for pagination (default: 0)

Link copied to clipboard
open override val queryText: String

the text query to match against document content