Skip to content

Commit c20849a

Browse files
committed
Deprecate usage of GenericProperty.Index
This commit adds ObsoleteAttribute to deprecated usage of GenericProperty.Index.
1 parent 082660b commit c20849a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Nest/Mapping/Types/Specialized/Generic/GenericProperty.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ public GenericPropertyDescriptor() : base(null) { }
174174
[Obsolete("Deprecated. Will be removed in NEST 7.x")]
175175
public GenericPropertyDescriptor<T> NotAnalyzed() => Index(FieldIndexOption.NotAnalyzed);
176176

177+
[Obsolete("Please use the overload that accepts bool?. Will be fixed in NEST 7.x")]
177178
public GenericPropertyDescriptor<T> Index(FieldIndexOption index) => Assign(a => a.Index = index);
178179

179180
public GenericPropertyDescriptor<T> TermVector(TermVectorOption termVector) => Assign(a => a.TermVector = termVector);

0 commit comments

Comments
 (0)