Interface ICollectionQueryIndexManager
This interface contains the means for managing collection-level indexes used for queries.
Namespace: Couchbase.Management.Query
Assembly: Couchbase.NetClient.dll
Syntax
public interface ICollectionQueryIndexManager
Methods
| Edit this page View SourceBuildDeferredIndexesAsync(BuildDeferredQueryIndexOptions)
Build Deferred builds all indexes which are currently in deferred state.
Declaration
Task BuildDeferredIndexesAsync(BuildDeferredQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
Build |
options | Any optional parameters. |
Returns
| Edit this page View SourceCreateIndexAsync(string, IEnumerable<string>, CreateQueryIndexOptions)
Creates a new index.
Declaration
Task CreateIndexAsync(string indexName, IEnumerable<string> fields, CreateQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
string | indexName | The name of the index. |
IEnumerable<string> | fields | The fields to create the index over. |
Create |
options | Any optional parameters. |
Returns
| Edit this page View SourceCreatePrimaryIndexAsync(CreatePrimaryQueryIndexOptions)
Creates a new primary index on the bucket in scope.
Declaration
Task CreatePrimaryIndexAsync(CreatePrimaryQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
Create |
options | Any optional fields. |
Returns
| Edit this page View SourceDropIndexAsync(string, DropQueryIndexOptions)
Drops an index.
Declaration
Task DropIndexAsync(string indexName, DropQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
string | indexName | The name of the index to drop. |
Drop |
options | Any optional parameters. |
Returns
| Edit this page View SourceDropPrimaryIndexAsync(DropPrimaryQueryIndexOptions)
Drops a primary index.
Declaration
Task DropPrimaryIndexAsync(DropPrimaryQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
Drop |
options | Any optional parameters. |
Returns
| Edit this page View SourceGetAllIndexesAsync(GetAllQueryIndexOptions)
Fetches all indexes from the server for the given bucket (limiting to scope/collection if applicable).
Declaration
Task<IEnumerable<QueryIndex>> GetAllIndexesAsync(GetAllQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
Get |
options | The operational to specify. |
Returns
Type | Description |
---|---|
Task<IEnumerable<Query |
A IEnumerable<T> with the results of the query. |
WatchIndexesAsync(IEnumerable<string>, TimeSpan, WatchQueryIndexOptions)
An internal collection reference for the query_context.
Declaration
Task WatchIndexesAsync(IEnumerable<string> indexNames, TimeSpan duration, WatchQueryIndexOptions options)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | indexNames | The names of the indexes to watch. |
Time |
duration | The time allowed for the operation to be terminated. |
Watch |
options | Any optional parameters. |