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 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<FieldOperations<*>>, val scriptFields: Map<String, Script>, val runtimeMappings: Map<String, BoundRuntimeField<*>>, val size: Int?, val from: Int?, val terminateAfter: Int?, val extensions: List<SearchExt>, 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
fun <out S : BaseDocSource> Search(docSourceFactory: (obj: Deserializer.ObjectCtx) -> S, query: QueryExpression?, filters: List<QueryExpression>, postFilters: List<QueryExpression>, aggregations: Map<String, Aggregation<*>>, rescores: List<Rescore>, sorts: List<Sort>, trackScores: Boolean?, trackTotalHits: Boolean?, source: Source?, fields: List<FieldFormat>, docvalueFields: List<FieldFormat>, storedFields: List<FieldOperations<*>>, scriptFields: Map<String, Script>, runtimeMappings: Map<String, BoundRuntimeField<*>>, size: Int?, from: Int?, terminateAfter: Int?, extensions: List<SearchExt>, params: Params)