IndexModel.add

Adds an index with a given index type. Use IndexType for a type-safe setting of the string.

  1. IndexModel add(string field, int direction)
  2. IndexModel add(string field, string type)
    struct IndexModel
    ref return @safe
    add
    (
    string field
    ,
    string type
    )

Parameters

field string

the name of the field to index

type string

the index type to use

Return Value

this IndexModel instance (caller)

Meta