Index

public class Index

Index represents an index which could be a value index for regular queries or full-text index for full-text queries (using the match operator).

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

    Declaration

    Swift

    public class func valueIndex(withItems items: ValueIndexItem...) -> ValueIndex

    Return Value

    The ValueIndex.

  • Create a full-text index with the given index items. Typically the index items are the properties that are used to perform the match operation against with.

    Declaration

    Swift

    public class func fullTextIndex(withItems items: FullTextIndexItem...) -> FullTextIndex

    Return Value

    The ON operator.