PayloadIndexBuilder

DSL for createPayloadIndex, choosing the index type and the parameters that type accepts.

Exactly one type per call, because a field carries one index:

qdrant.createPayloadIndex("docs", "body") {
text { tokenizer = Tokenizer.WORD; phraseMatching = true }
}
qdrant.createPayloadIndex("docs", "tenant") { keyword { isTenant = true; onDisk = true } }

A type function with an empty body asks for that index with the server's defaults, which is the three-argument createPayloadIndex(name, field, schema) overload written differently.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun bool(configure: BoolIndexBuilder.() -> Unit = {})

A boolean index.

Link copied to clipboard
fun datetime(configure: DatetimeIndexBuilder.() -> Unit = {})

A datetime index, for datetimeRange filters.

Link copied to clipboard
fun float(configure: FloatIndexBuilder.() -> Unit = {})

A float index.

Link copied to clipboard
fun geo(configure: GeoIndexBuilder.() -> Unit = {})

A geo index, for the geo matchers.

Link copied to clipboard
fun integer(configure: IntegerIndexBuilder.() -> Unit = {})

An integer index, answering equality lookups, ranges or both.

Link copied to clipboard
fun keyword(configure: KeywordIndexBuilder.() -> Unit = {})

A keyword index: exact matches on a string or a list of strings.

Link copied to clipboard
fun text(configure: TextIndexBuilder.() -> Unit = {})

A full-text index, for matchText, matchTextAny and matchPhrase.

Link copied to clipboard
fun uuid(configure: UuidIndexBuilder.() -> Unit = {})

A UUID index.