Search

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)