Prefetch

@Serializable
data class Prefetch(val prefetch: List<Prefetch>? = null, val query: QueryInterface? = null, val using: String? = null, val filter: Filter? = null, val limit: Int? = null, val scoreThreshold: Double? = null, val params: SearchParams? = null, val lookupFrom: LookupLocation? = null)

A prefetch sub-request: candidates fetched first, then combined or reranked by the outer SearchRequest.query. Prefetches nest recursively for multi-stage retrieval.

Constructors

Link copied to clipboard
constructor(prefetch: List<Prefetch>? = null, query: QueryInterface? = null, using: String? = null, filter: Filter? = null, limit: Int? = null, scoreThreshold: Double? = null, params: SearchParams? = null, lookupFrom: LookupLocation? = null)

Properties

Link copied to clipboard
@SerialName(value = "filter")
val filter: Filter?
Link copied to clipboard
@SerialName(value = "limit")
val limit: Int?
Link copied to clipboard
@SerialName(value = "lookup_from")
val lookupFrom: LookupLocation?
Link copied to clipboard
@SerialName(value = "params")
val params: SearchParams?
Link copied to clipboard
@SerialName(value = "prefetch")
val prefetch: List<Prefetch>?
Link copied to clipboard
@SerialName(value = "query")
val query: QueryInterface?
Link copied to clipboard
@SerialName(value = "score_threshold")
val scoreThreshold: Double?
Link copied to clipboard
@SerialName(value = "using")
val using: String?