Skip to content

DynamicTemplates: Unable to specify FieldIndexOption.NotAnalyzed #1734

Closed
@niemyjski

Description

@niemyjski
map.DynamicTemplates(dt => dt.Add(t => t.Name("idx_reference").Match("@ref:*").Mapping(m => m.Generic(f => f.Type("string").Index(FieldIndexOption.NotAnalyzed)))))

Looks like there is no overload that takes the enum and others are seeing this as well.

http://stackoverflow.com/questions/31280683/create-elasticsearch-dynamic-template-to-ensure-all-fields-are-set-to-not-analyz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions