@@ -10,47 +10,47 @@ namespace Nest
1010 [ JsonObject ( MemberSerialization = MemberSerialization . OptIn ) ]
1111 [ JsonConverter ( typeof ( ReadAsTypeConverter < SpanFieldMaskingQueryDescriptor < object > > ) ) ]
1212 public interface ISpanFieldMaskingQuery : ISpanSubQuery , IFieldNameQuery
13- {
14- [ JsonProperty ( PropertyName = "field" ) ]
15- PropertyPathMarker Field { get ; set ; }
16-
17- [ JsonProperty ( PropertyName = "query" ) ]
13+ {
14+ [ JsonProperty ( PropertyName = "field" ) ]
15+ PropertyPathMarker Field { get ; set ; }
16+
17+ [ JsonProperty ( PropertyName = "query" ) ]
1818 ISpanQuery Query { get ; set ; }
1919 }
2020
2121 public class SpanFieldMaskingQuery : PlainQuery , ISpanFieldMaskingQuery
22- {
22+ {
2323 protected override void WrapInContainer ( IQueryContainer container )
2424 {
2525 container . SpanFieldMasking = this ;
2626 }
2727
2828 bool IQuery . IsConditionless { get { return false ; } }
2929
30- public string Name { get ; set ; }
31- public PropertyPathMarker Field { get ; set ; }
32- public ISpanQuery Query { get ; set ; }
30+ public string Name { get ; set ; }
31+ public PropertyPathMarker Field { get ; set ; }
32+ public ISpanQuery Query { get ; set ; }
3333
34- PropertyPathMarker IFieldNameQuery . GetFieldName ( )
35- {
36- return this . Field ;
37- }
34+ PropertyPathMarker IFieldNameQuery . GetFieldName ( )
35+ {
36+ return this . Field ;
37+ }
3838
39- void IFieldNameQuery . SetFieldName ( string fieldName )
40- {
41- this . Field = fieldName ;
42- }
43- }
39+ void IFieldNameQuery . SetFieldName ( string fieldName )
40+ {
41+ this . Field = fieldName ;
42+ }
43+ }
4444
4545 public class SpanFieldMaskingQueryDescriptor < T > : ISpanFieldMaskingQuery where T : class
4646 {
4747 ISpanFieldMaskingQuery Self { get { return this ; } }
48- bool IQuery . IsConditionless { get { return false ; } }
48+ bool IQuery . IsConditionless { get { return false ; } }
4949
50- ISpanQuery ISpanFieldMaskingQuery . Query { get ; set ; }
51- PropertyPathMarker ISpanFieldMaskingQuery . Field { get ; set ; }
52- string IQuery . Name { get ; set ; }
53-
50+ ISpanQuery ISpanFieldMaskingQuery . Query { get ; set ; }
51+ PropertyPathMarker ISpanFieldMaskingQuery . Field { get ; set ; }
52+ string IQuery . Name { get ; set ; }
53+
5454 public SpanFieldMaskingQueryDescriptor < T > Name ( string name )
5555 {
5656 Self . Name = name ;
@@ -71,26 +71,26 @@ public SpanFieldMaskingQueryDescriptor<T> OnField(string field)
7171 return this ;
7272 }
7373
74- public SpanFieldMaskingQueryDescriptor < T > OnField ( Expression < Func < T , object > > field )
75- {
76- Self . Field = field ;
77- return this ;
78- }
74+ public SpanFieldMaskingQueryDescriptor < T > OnField ( Expression < Func < T , object > > field )
75+ {
76+ Self . Field = field ;
77+ return this ;
78+ }
7979
80- public SpanFieldMaskingQueryDescriptor < T > OnField < K > ( Expression < Func < T , K > > field )
81- {
82- Self . Field = field ;
83- return this ;
84- }
85-
86- public PropertyPathMarker GetFieldName ( )
87- {
88- return Self . Field ;
89- }
80+ public SpanFieldMaskingQueryDescriptor < T > OnField < K > ( Expression < Func < T , K > > field )
81+ {
82+ Self . Field = field ;
83+ return this ;
84+ }
85+
86+ public PropertyPathMarker GetFieldName ( )
87+ {
88+ return Self . Field ;
89+ }
9090
91- public void SetFieldName ( string fieldName )
92- {
93- Self . Field = fieldName ;
94- }
95- }
91+ public void SetFieldName ( string fieldName )
92+ {
93+ Self . Field = fieldName ;
94+ }
95+ }
9696}
0 commit comments