Package com.couchbase.lite
Class IndexBuilder
java.lang.Object
com.couchbase.lite.IndexBuilder
IndexBuilder used for building database index objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FullTextIndexfullTextIndex(FullTextIndexItem... items) Create a full-text search index with the given index item and options.static ValueIndexvalueIndex(ValueIndexItem... items) Create a value index with the given index items.
-
Constructor Details
-
IndexBuilder
public IndexBuilder()
-
-
Method Details
-
valueIndex
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
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.
-