Search
data class Search<out S : BaseDocSource>(val docSourceFactory: (obj: Deserializer.ObjectCtx) -> S, val query: QueryExpression?, val filters: List<QueryExpression>, val postFilters: List<QueryExpression>, val knn: Knn<*, *>?, val aggregations: Map<String, Aggregation<*>>, val rescores: List<Rescore>, val sorts: List<Sort>, val trackScores: Boolean?, val trackTotalHits: Boolean?, val source: Source?, val fields: List<FieldFormat>, val docvalueFields: List<FieldFormat>, val storedFields: List<StoredField>, val scriptFields: Map<String, Script>, val runtimeMappings: Map<String, BoundRuntimeField<*>>, val size: Int?, val from: Int?, val terminateAfter: Int?, val extensions: List<SearchExt>, val timeout: Duration?, val params: Params) : PreparedSearchQuery
A prepared search query is a public read-only view to a search query. Mainly it is used to compile a search query.
Constructors
Link copied to clipboard
constructor(docSourceFactory: (obj: Deserializer.ObjectCtx) -> S, query: QueryExpression?, filters: List<QueryExpression>, postFilters: List<QueryExpression>, knn: Knn<*, *>?, aggregations: Map<String, Aggregation<*>>, rescores: List<Rescore>, sorts: List<Sort>, trackScores: Boolean?, trackTotalHits: Boolean?, source: Source?, fields: List<FieldFormat>, docvalueFields: List<FieldFormat>, storedFields: List<StoredField>, scriptFields: Map<String, Script>, runtimeMappings: Map<String, BoundRuntimeField<*>>, size: Int?, from: Int?, terminateAfter: Int?, extensions: List<SearchExt>, timeout: Duration?, params: Params)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard