PreparedSearchQuery

data class PreparedSearchQuery<S : BaseDocSource>(docSourceFactory: (<ERROR CLASS>) -> 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>, size: Int?, from: Int?, terminateAfter: Int?, extensions: List<SearchExt>, params: Params)

A prepared search query is a public read-only view to a search query. Mainly it is used to compile a search query.

Constructors

PreparedSearchQuery
Link copied to clipboard
fun <S : BaseDocSource> PreparedSearchQuery(docSourceFactory: (<ERROR CLASS>) -> 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>, size: Int?, from: Int?, terminateAfter: Int?, extensions: List<SearchExt>, params: Params)

Properties

aggregations
Link copied to clipboard
val aggregations: Map<String, Aggregation<*>>
docSourceFactory
Link copied to clipboard
val docSourceFactory: (<ERROR CLASS>) -> S
docvalueFields
Link copied to clipboard
val docvalueFields: List<FieldFormat>
extensions
Link copied to clipboard
val extensions: List<SearchExt>
fields
Link copied to clipboard
val fields: List<FieldFormat>
filters
Link copied to clipboard
val filters: List<QueryExpression>
from
Link copied to clipboard
val from: Int?
params
Link copied to clipboard
val params: Params
postFilters
Link copied to clipboard
val postFilters: List<QueryExpression>
query
Link copied to clipboard
val query: QueryExpression?
rescores
Link copied to clipboard
val rescores: List<Rescore>
scriptFields
Link copied to clipboard
val scriptFields: Map<String, Script>
size
Link copied to clipboard
val size: Int?
sorts
Link copied to clipboard
val sorts: List<Sort>
source
Link copied to clipboard
val source: Source?
storedFields
Link copied to clipboard
val storedFields: List<FieldOperations<*>>
terminateAfter
Link copied to clipboard
val terminateAfter: Int?
trackScores
Link copied to clipboard
val trackScores: Boolean?
trackTotalHits
Link copied to clipboard
val trackTotalHits: Boolean?