Condividi tramite


CompositePath Class

Definition

DOM for a composite path. A composite path is used in a composite index. For example if you want to run a query like "SELECT * FROM c ORDER BY c.age, c.height", then you need to add "/age" and "/height" as composite paths to your composite index.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonCompositePathConverter))]
public sealed class CompositePath
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Cosmos.TextJsonCompositePathConverter))>]
type CompositePath = class
Public NotInheritable Class CompositePath
Inheritance
CompositePath
Attributes

Constructors

CompositePath()

Properties

Order

Gets or sets the sort order for the composite path. For example if you want to run the query "SELECT * FROM c ORDER BY c.age asc, c.height desc", then you need to make the order for "/age" "ascending" and the order for "/height" "descending".

Path

Gets or sets the full path in a document used for composite indexing. We do not support wild cards in the path.

Applies to