File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public InnerHitsDescriptor<T> Name(string name)
102
102
103
103
public InnerHitsDescriptor < T > FielddataFields ( params string [ ] fielddataFields )
104
104
{
105
- if ( fielddataFields . HasAny ( ) )
105
+ if ( ! fielddataFields . HasAny ( ) )
106
106
return this ;
107
107
Self . FielddataFields = fielddataFields . Select ( f => ( PropertyPathMarker ) f ) . ToList ( ) ;
108
108
return this ;
Original file line number Diff line number Diff line change @@ -629,7 +629,7 @@ public SearchDescriptor<T> Fields(params string[] fields)
629
629
///</summary>
630
630
public SearchDescriptor < T > FielddataFields ( params string [ ] fielddataFields )
631
631
{
632
- if ( fielddataFields . HasAny ( ) )
632
+ if ( ! fielddataFields . HasAny ( ) )
633
633
return this ;
634
634
Self . FielddataFields = fielddataFields . Select ( f => ( PropertyPathMarker ) f ) . ToList ( ) ;
635
635
return this ;
You can’t perform that action at this time.
0 commit comments