IDataEnricherApiCreateIndex Method |
Namespace: Casewhere.Runtime.DSL.Api
void CreateIndex( string dataClassName, DslIndexDefinition indexDefinition )
var dataClassName = "Company"; var indexDefinition = new DslIndexDefinition() { Name= "CompanyName", //User define Keys = new List<DslIndexKeyDefinition>() { new DslIndexKeyDefinition(name: "CompanyName", indexType: 1) } }; var dataEnricherApi = ctx.Use<IDataEnricherApi>(); dataEnricherApi.CreateIndex(dataClassName, indexDefinition);