你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IndexingMode Class

Specifies the supported indexing modes.

Constructor

IndexingMode()

Attributes

Consistent

Index is updated synchronously with a create or update operation. With consistent indexing, query behavior is the same as the default consistency level for the collection. The index is always kept up to date with the data.

Consistent: Literal['consistent'] = 'consistent'

Lazy

Index is updated asynchronously with respect to a create or update operation. Not supported for new containers since June/2020. With lazy indexing, queries are eventually consistent. The index is updated when the collection is idle.

Lazy: Literal['lazy'] = 'lazy'

NoIndex

No index is provided. Setting IndexingMode to "None" drops the index. Use this if you don't want to maintain the index for a document collection, to save the storage cost or improve the write throughput. Your queries will degenerate to scans of the entire collection.

NoIndex: Literal['none'] = 'none'