FeedOptions.EnableScanInQuery Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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.
Examples
// 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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET