BaseSearchQuery
abstract class BaseSearchQuery<S : BaseDocSource, T : BaseSearchQuery<S, T>>(docSourceFactory: (<ERROR CLASS>) -> S, query: QueryExpression?, params: Params)
Content copied to clipboard
An abstract class that holds all the search query builder methods. Inheritors of the class can implement some shortcut methods. For instance SearchQuery.execute which can be suspendable or blocking.
Constructors
BaseSearchQuery
Link copied to clipboard
fun <S : BaseDocSource> BaseSearchQuery(docSourceFactory: (<ERROR CLASS>) -> S, query: QueryExpression? = null, params: Params = Params())
Content copied to clipboard
Types
Functions
aggs
Link copied to clipboard
docvalueFields
Link copied to clipboard
fields
Link copied to clipboard
filter
Link copied to clipboard
Combines all the filter expressions together and wraps the existing query using the dev.evo.elasticmagic.query.Bool query expression.
postFilter
Link copied to clipboard
prepare
Link copied to clipboard
query
Link copied to clipboard
requestCache
Link copied to clipboard
scriptFields
Link copied to clipboard
searchParams
Link copied to clipboard
searchType
Link copied to clipboard
seqNoPrimaryTerm
Link copied to clipboard
source
Link copied to clipboard
fun source(includes: List<FieldOperations<*>> = emptyList(), excludes: List<FieldOperations<*>> = emptyList()): T
Content copied to clipboard
storedFields
Link copied to clipboard
terminateAfter
Link copied to clipboard
trackScores
Link copied to clipboard
trackTotalHits
Link copied to clipboard
When trackTotalHits is
true the search query will always count the total number of hits that match the query.Inheritors
SearchQuery
Link copied to clipboard
Extensions
usingIndex
Link copied to clipboard
fun <S : BaseDocSource> BaseSearchQuery<S, *>.usingIndex(indexName: String): SearchQueryWithIndex<S>
Content copied to clipboard