Azure-docs: Explanation of "automatic" property

Created on 26 Mar 2020  Â·  4Comments  Â·  Source: MicrosoftDocs/azure-docs

When creating an indexing policy, there's a property called "automatic" which can have a value of either true or false. I am not able to find the purpose of this property.

Can somebody please explain what exactly does this property do?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cosmos-dsvc cxp product-question triaged

All 4 comments

Hi @gmantri,

I'm linking that doc here: https://docs.microsoft.com/en-us/azure/cosmos-db/index-policy#indexing-mode

You should leave automatic to its default "true" value. This will allow documents to automatically be indexed at the time of write/update.

Thanks @timsander1. One followup question: So what happens if I set this property to false? Will the documents not indexed in that case?

If you don't want documents to be indexed, I recommend turning indexing off entirely (set Indexing Mode to "none"). But yes you're absolutely correct. Setting "automatic" to false turns off automatic indexing. We are, however, planning to remove the property entirely in the future. On new containers, updating the automatic property won't have any impact (it will however on some older containers so we have documented the behavior).

please-close

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments