File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- using Newtonsoft . Json ;
1
+ using System ;
2
+ using Newtonsoft . Json ;
2
3
3
4
namespace Nest
4
5
{
5
6
[ JsonObject ]
6
7
public class AnalyzeToken
7
8
{
8
- [ JsonProperty ( PropertyName = "token" ) ]
9
+ [ JsonProperty ( "token" ) ]
9
10
public string Token { get ; internal set ; }
10
11
11
- [ JsonProperty ( PropertyName = "type" ) ]
12
+ [ JsonProperty ( "type" ) ]
12
13
public string Type { get ; internal set ; }
13
14
14
- //TODO change to long in 6.0
15
- [ JsonProperty ( PropertyName = "start_offset" ) ]
15
+ //TODO change to long in 6.0... RC: (this is int in Elasticsearch codebase)
16
+ [ JsonProperty ( "start_offset" ) ]
16
17
public int StartOffset { get ; internal set ; }
17
18
18
- [ JsonProperty ( PropertyName = "end_offset" ) ]
19
- public int EndPostion { get ; internal set ; }
19
+ [ JsonProperty ( "end_offset" ) ]
20
+ public int EndOffset { get ; internal set ; }
20
21
21
- [ JsonProperty ( PropertyName = "position" ) ]
22
+ [ JsonProperty ( "position" ) ]
22
23
public int Position { get ; internal set ; }
23
24
24
- [ JsonProperty ( PropertyName = "position_length" ) ]
25
+ [ JsonProperty ( "position_length" ) ]
25
26
public long ? PositionLength { get ; internal set ; }
26
-
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments