Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (16 sloc) 469 Bytes
package ravendb
func indexCreationCreateIndexesToAdd(indexCreationTasks []*IndexCreationTask, conventions *DocumentConventions) []*IndexDefinition {
var res []*IndexDefinition
for _, x := range indexCreationTasks {
x.Conventions = conventions
definition := x.CreateIndexDefinition()
definition.Name = x.IndexName
pri := x.Priority
if pri == "" {
pri = IndexPriorityNormal
}
definition.Priority = pri
res = append(res, definition)
}
return res
}
You can’t perform that action at this time.