Class IndexBuilder

java.lang.Object
com.couchbase.lite.IndexBuilder

public final class IndexBuilder extends Object
IndexBuilder used for building database index objects.
  • Constructor Details

    • IndexBuilder

      public IndexBuilder()
  • Method Details

    • valueIndex

      @NonNull public static ValueIndex valueIndex(@NonNull ValueIndexItem... items)
      Create a value index with the given index items. The index items are a list of the properties or expressions to be indexed.
      Parameters:
      items - The index items
      Returns:
      The value index
    • fullTextIndex

      @NonNull public static FullTextIndex fullTextIndex(@NonNull FullTextIndexItem... items)
      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.
      Parameters:
      items - The index items.
      Returns:
      The full-text search index.