Show / Hide Table of Contents

Interface IIndexable

Namespace: Couchbase.Lite.Query
Assembly: Couchbase.Lite.dll
Syntax
public interface IIndexable

Methods

| Improve this Doc View Source

CreateIndex(string, IndexConfiguration)

Creates a SQL index which could be a value index from ValueIndexConfiguration or a full-text search index from FullTextIndexConfiguration with the given name. The name can be used for deleting the index. Creating a new different index with an existing index name will replace the old index; creating the same index with the same name will be no-ops.

Declaration
void CreateIndex(string name, IndexConfiguration indexConfig)
Parameters
Type Name Description
string name

The index name

IndexConfiguration indexConfig

The index

Exceptions
Type Condition
ArgumentNullException

Thrown if name or indexConfig is null

CouchbaseException

Thrown if an error condition is returned from LiteCore

InvalidOperationException

Thrown if this method is called after the database is closed

NotSupportedException

Thrown if an implementation of IIndex other than one of the library provided ones is used

| Improve this Doc View Source

DeleteIndex(string)

Deletes the index with the given name

Declaration
void DeleteIndex(string name)
Parameters
Type Name Description
string name

The name of the index to delete

| Improve this Doc View Source

GetIndexes()

Gets a list of index names that are present in the database

Declaration
IList<string> GetIndexes()
Returns
Type Description
IList<string>

The list of created index names

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX