Table of Contents

Class IndexingPolicyDefinition<T>

Namespace
Microsoft.Azure.Cosmos.Fluent
Assembly
Microsoft.Azure.Cosmos.Client.dll

Indexing Policy fluent definition.

public class IndexingPolicyDefinition<T>

Type Parameters

T
Inheritance
IndexingPolicyDefinition<T>
Inherited Members
Extension Methods

Constructors

IndexingPolicyDefinition()

Creates an instance for unit-testing

public IndexingPolicyDefinition()
See Also

Methods

Attach()

Applies the current definition to the parent.

public T Attach()

Returns

T

An instance of the parent.

See Also

WithAutomaticIndexing(bool)

Defines the Container's automatic indexing.

public IndexingPolicyDefinition<T> WithAutomaticIndexing(bool enabled)

Parameters

enabled bool

Defines whether Automatic Indexing is enabled or not.

Returns

IndexingPolicyDefinition<T>

An instance of IndexingPolicyDefinition<T>.

See Also

WithCompositeIndex()

Defines a Composite Index in the current Container's definition.

public CompositeIndexDefinition<IndexingPolicyDefinition<T>> WithCompositeIndex()

Returns

CompositeIndexDefinition<IndexingPolicyDefinition<T>>

An instance of CompositeIndexDefinition<T>.

See Also

WithExcludedPaths()

Defines the Container's ExcludedPaths.

public PathsDefinition<IndexingPolicyDefinition<T>> WithExcludedPaths()

Returns

PathsDefinition<IndexingPolicyDefinition<T>>

An instance of PathsDefinition<T>.

See Also

WithIncludedPaths()

Defines the Container's IncludedPaths.

public PathsDefinition<IndexingPolicyDefinition<T>> WithIncludedPaths()

Returns

PathsDefinition<IndexingPolicyDefinition<T>>

An instance of PathsDefinition<T>.

See Also

WithIndexingMode(IndexingMode)

Defines the Container's IndexingMode.

public IndexingPolicyDefinition<T> WithIndexingMode(IndexingMode indexingMode)

Parameters

indexingMode IndexingMode

An IndexingMode

Returns

IndexingPolicyDefinition<T>

An instance of IndexingPolicyDefinition<T>.

Remarks

If multiple calls are made to this method within the same IndexingPolicyDefinition<T>, the last one will apply.

See Also

WithSpatialIndex()

Defines a SpatialIndex in the current Container's definition.

public SpatialIndexDefinition<IndexingPolicyDefinition<T>> WithSpatialIndex()

Returns

SpatialIndexDefinition<IndexingPolicyDefinition<T>>

An instance of SpatialIndexDefinition<T>.

See Also

See Also