We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aff99fb commit ea07eb7Copy full SHA for ea07eb7
src/Nest/Domain/Mapping/Descriptors/GenericMappingDescriptor.cs
@@ -35,6 +35,11 @@ public GenericMappingDescriptor<T> Index(string fieldIndexOption)
35
this._Mapping.Index = fieldIndexOption;
36
return this;
37
}
38
+ public GenericMappingDescriptor<T> Index(FieldIndexOption fieldIndexOption)
39
+ {
40
+ this._Mapping.Index = fieldIndexOption == null ? null : fieldIndexOption.GetStringValue();
41
+ return this;
42
+ }
43
public GenericMappingDescriptor<T> Store(bool store = true)
44
{
45
this._Mapping.Store = store;
0 commit comments