ForceQueryOnNonIndexedContainers Parameter (Connect-CosmosDB Cmdlet)
Force the use of an index scan to process the query if indexing is disabled or the right index path is not available.
Syntax
Connect-CosmosDB -ForceQueryOnNonIndexedContainers SwitchParameter
Data Type
bool
Default Value
false
Remarks
Queries against containers where indexing is disabled or paths are excluded may fail. Set this property to true to force the use of indexing on the server so the query is processed successfully. By default, queries that require the use of indexing on containers where IndexingMode=None are handled client-side.