Skip to content

Commit ea07eb7

Browse files
committed
fix #1734 genericmapping descriptor missing enum overload for index()
1 parent aff99fb commit ea07eb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Nest/Domain/Mapping/Descriptors/GenericMappingDescriptor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ public GenericMappingDescriptor<T> Index(string fieldIndexOption)
3535
this._Mapping.Index = fieldIndexOption;
3636
return this;
3737
}
38+
public GenericMappingDescriptor<T> Index(FieldIndexOption fieldIndexOption)
39+
{
40+
this._Mapping.Index = fieldIndexOption == null ? null : fieldIndexOption.GetStringValue();
41+
return this;
42+
}
3843
public GenericMappingDescriptor<T> Store(bool store = true)
3944
{
4045
this._Mapping.Store = store;

0 commit comments

Comments
 (0)