Click or drag to resize

DslIndexDefinition Class

The index definition contains a set of properties that controls the creation of the index.
Inheritance Hierarchy
SystemObject
  Casewhere.Runtime.DSLDslIndexDefinition

Namespace:  Casewhere.Runtime.DSL
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
[SerializableAttribute]
public class DslIndexDefinition

The DslIndexDefinition type exposes the following members.

Constructors
  NameDescription
Public methodDslIndexDefinition
Initializes a new instance of the DslIndexDefinition class
Top
Properties
  NameDescription
Public propertyBackground
Optional. If specified, the index will be created in a background.
Public propertyExpireAfter
Optional. Specifies a value, in seconds via TimeSpan, as a time to live (TTL) to control how long data source retains data objects in data source. This property only applies to TTL indexes.
Public propertyKeys
The list of index key definition (Attributes Name and Index type).
Public propertyName
The name of the index.
Public propertyPartialFilterExpression
Optional. If specified, the index only references data objects that match the filter expression. A filter expression can include: $eq, $exists: true, $gt, $gte, $lt, $lte, $type, $and, $or, $in.
Public propertyUnique
Optional. Creates a unique index so that the data source will not accept insertion or update of data object where the index key value matches an existing value in the index.
Top
See Also