IndexBuilder

expect object IndexBuilder(source)

IndexBuilder used for building database indices.

Use Database.createIndex(IndexConfiguration, String) instead.

actual object IndexBuilder(source)
actual object IndexBuilder(source)

Functions

Link copied to clipboard
expect fun fullTextIndex(vararg items: FullTextIndexItem): FullTextIndex

Create a full-text search index with the given index item and options. Typically, the index item is the property that is used to perform the match operation against with.

actual fun fullTextIndex(vararg items: FullTextIndexItem): FullTextIndex
actual fun fullTextIndex(vararg items: FullTextIndexItem): FullTextIndex
Link copied to clipboard
expect fun IndexBuilder.predictiveIndex(model: String, input: Expression, properties: List<String>? = null): PredictiveIndex

ENTERPRISE EDITION API

actual fun IndexBuilder.predictiveIndex(model: String, input: Expression, properties: List<String>?): PredictiveIndex
actual fun IndexBuilder.predictiveIndex(model: String, input: Expression, properties: List<String>?): PredictiveIndex
Link copied to clipboard
expect fun valueIndex(vararg items: ValueIndexItem): ValueIndex

Create a value index with the given index items. The index items are a list of the properties or expressions to be indexed.

actual fun valueIndex(vararg items: ValueIndexItem): ValueIndex
actual fun valueIndex(vararg items: ValueIndexItem): ValueIndex