FeedOptions.EnableScanInQuery Property


Gets or sets the option to enable scans on the queries which couldn't be served as indexing was opted out on the requested paths in the Azure Cosmos DB service.

public Nullable<bool> EnableScanInQuery { get; set; }
member this.EnableScanInQuery : Nullable<bool> with get, set
Public Property EnableScanInQuery As Nullable(Of Boolean)

Property Value


Option is true if scan on queries is enabled; otherwise, false.


// Enable scan when Range index is not specified.
var queryable = client.CreateDocumentQuery<Book>(
    collectionLink, new FeedOptions { EnableScanInQuery = true }).Where(b => b.Price > 1000);

Applies to