Skip to content

Commit 03e3741

Browse files
committed
Found some more ints that should probably be longs see: #466'
1 parent 6ce7556 commit 03e3741

File tree

10 files changed

+91
-91
lines changed

10 files changed

+91
-91
lines changed

src/Nest/Domain/Facets/DateRangeFacet.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44

55
namespace Nest
66
{
7-
[JsonObject]
8-
public class DateRangeFacet : Facet, IFacet<DateRange>
9-
{
10-
[JsonProperty("ranges")]
11-
public IEnumerable<DateRange> Items { get; internal set; }
7+
[JsonObject]
8+
public class DateRangeFacet : Facet, IFacet<DateRange>
9+
{
10+
[JsonProperty("ranges")]
11+
public IEnumerable<DateRange> Items { get; internal set; }
1212

13-
}
14-
[JsonObject]
15-
public class DateRange : FacetItem
16-
{
17-
[JsonProperty(PropertyName = "to_str")]
18-
public DateTime? To { get; internal set; }
13+
}
14+
[JsonObject]
15+
public class DateRange : FacetItem
16+
{
17+
[JsonProperty(PropertyName = "to_str")]
18+
public DateTime? To { get; internal set; }
1919

20-
[JsonProperty(PropertyName = "from_str")]
21-
public DateTime? From { get; internal set; }
20+
[JsonProperty(PropertyName = "from_str")]
21+
public DateTime? From { get; internal set; }
2222

23-
[JsonProperty(PropertyName = "min")]
24-
public double? Min { get; internal set; }
23+
[JsonProperty(PropertyName = "min")]
24+
public double? Min { get; internal set; }
2525

26-
[JsonProperty(PropertyName = "max")]
27-
public double? Max { get; internal set; }
26+
[JsonProperty(PropertyName = "max")]
27+
public double? Max { get; internal set; }
2828

29-
[JsonProperty(PropertyName = "total_count")]
30-
public int TotalCount { get; internal set; }
29+
[JsonProperty(PropertyName = "total_count")]
30+
public long TotalCount { get; internal set; }
3131

32-
[JsonProperty(PropertyName = "total")]
33-
public double Total { get; internal set; }
32+
[JsonProperty(PropertyName = "total")]
33+
public double Total { get; internal set; }
3434

35-
[JsonProperty(PropertyName = "mean")]
36-
public double? Mean { get; internal set; }
37-
}
35+
[JsonProperty(PropertyName = "mean")]
36+
public double? Mean { get; internal set; }
37+
}
3838
}

src/Nest/Domain/Facets/GeoDistanceFacet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class GeoDistanceRange : FacetItem
2828
public float Total { get; internal set; }
2929

3030
[JsonProperty(PropertyName = "total_count")]
31-
public int TotalCount { get; internal set; }
31+
public long TotalCount { get; internal set; }
3232

3333
[JsonProperty(PropertyName = "mean")]
3434
public float? Mean { get; internal set; }

src/Nest/Domain/Facets/RangeFacet.cs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@
33

44
namespace Nest
55
{
6-
[JsonObject]
7-
public class RangeFacet : Facet, IFacet<Range>
8-
{
9-
[JsonProperty("ranges")]
10-
public IEnumerable<Range> Items { get; internal set; }
6+
[JsonObject]
7+
public class RangeFacet : Facet, IFacet<Range>
8+
{
9+
[JsonProperty("ranges")]
10+
public IEnumerable<Range> Items { get; internal set; }
1111

12-
}
13-
[JsonObject]
14-
public class Range : FacetItem
15-
{
16-
[JsonProperty(PropertyName = "to")]
17-
public double? To { get; internal set; }
12+
}
13+
[JsonObject]
14+
public class Range : FacetItem
15+
{
16+
[JsonProperty(PropertyName = "to")]
17+
public double? To { get; internal set; }
1818

19-
[JsonProperty(PropertyName = "from")]
20-
public double? From { get; internal set; }
19+
[JsonProperty(PropertyName = "from")]
20+
public double? From { get; internal set; }
2121

22-
[JsonProperty(PropertyName = "min")]
23-
public double Min { get; internal set; }
22+
[JsonProperty(PropertyName = "min")]
23+
public double Min { get; internal set; }
2424

25-
[JsonProperty(PropertyName = "max")]
26-
public double Max { get; internal set; }
25+
[JsonProperty(PropertyName = "max")]
26+
public double Max { get; internal set; }
2727

28-
[JsonProperty(PropertyName = "total_count")]
29-
public int TotalCount { get; internal set; }
28+
[JsonProperty(PropertyName = "total_count")]
29+
public long TotalCount { get; internal set; }
3030

31-
[JsonProperty(PropertyName = "total")]
32-
public double Total { get; internal set; }
31+
[JsonProperty(PropertyName = "total")]
32+
public double Total { get; internal set; }
3333

34-
[JsonProperty(PropertyName = "mean")]
35-
public double Mean { get; internal set; }
36-
}
34+
[JsonProperty(PropertyName = "mean")]
35+
public double Mean { get; internal set; }
36+
}
3737
}

src/Nest/Domain/Hit/Segment.cs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@
33

44
namespace Nest
55
{
6-
[JsonObject]
7-
public class Segment
8-
{
9-
[JsonProperty(PropertyName = "generation")]
10-
public int Generation { get; internal set; }
6+
[JsonObject]
7+
public class Segment
8+
{
9+
[JsonProperty(PropertyName = "generation")]
10+
public int Generation { get; internal set; }
1111

12-
[JsonProperty(PropertyName = "num_docs")]
13-
public int TotalDocuments { get; internal set; }
12+
[JsonProperty(PropertyName = "num_docs")]
13+
public long TotalDocuments { get; internal set; }
1414

15-
[JsonProperty(PropertyName = "deleted_docs")]
16-
public int DeletedDocuments { get; internal set; }
15+
[JsonProperty(PropertyName = "deleted_docs")]
16+
public long DeletedDocuments { get; internal set; }
1717

18-
[JsonProperty(PropertyName = "size")]
19-
public string Size { get; internal set; }
18+
[JsonProperty(PropertyName = "size")]
19+
public string Size { get; internal set; }
2020

21-
[JsonProperty(PropertyName = "size_in_bytes")]
22-
public double SizeInBytes { get; internal set; }
21+
[JsonProperty(PropertyName = "size_in_bytes")]
22+
public double SizeInBytes { get; internal set; }
2323

24-
[JsonProperty(PropertyName = "committed")]
25-
public bool Committed { get; internal set; }
26-
27-
[JsonProperty(PropertyName = "Search")]
28-
public bool Search { get; internal set; }
29-
}
24+
[JsonProperty(PropertyName = "committed")]
25+
public bool Committed { get; internal set; }
26+
27+
[JsonProperty(PropertyName = "Search")]
28+
public bool Search { get; internal set; }
29+
}
3030
}

src/Nest/Domain/Stats/GetStats.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ public class GetStats
1919
public long Current { get; set; }
2020

2121
[JsonProperty(PropertyName = "exists_total")]
22-
public int ExistsTotal { get; set; }
22+
public long ExistsTotal { get; set; }
2323
[JsonProperty(PropertyName = "exists_time")]
2424
public string ExistsTime { get; set; }
2525
[JsonProperty(PropertyName = "exists_time_in_millis")]
2626
public double ExistsTimeInMilliseconds { get; set; }
2727

2828
[JsonProperty(PropertyName = "missing_total")]
29-
public int MissingTotal { get; set; }
29+
public long MissingTotal { get; set; }
3030
[JsonProperty(PropertyName = "missing_time")]
3131
public string MissingTime { get; set; }
3232
[JsonProperty(PropertyName = "missing_time_in_millis")]

src/Nest/Domain/Stats/IndexDocStats.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
namespace Nest
88
{
9-
public class IndexDocStats
10-
{
11-
[JsonProperty("num_docs")]
12-
public int NumberOfDocs { get; set; }
13-
[JsonProperty("max_docs")]
14-
public int MaximumDocs { get; set; }
15-
[JsonProperty("deleted_docs")]
16-
public int DeletedDocs { get; set; }
17-
}
9+
public class IndexDocStats
10+
{
11+
[JsonProperty("num_docs")]
12+
public long NumberOfDocs { get; set; }
13+
[JsonProperty("max_docs")]
14+
public long MaximumDocs { get; set; }
15+
[JsonProperty("deleted_docs")]
16+
public long DeletedDocs { get; set; }
17+
}
1818
}

src/Nest/Domain/Stats/MergesStats.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class MergesStats
2727
public double TotalTimeInMilliseconds { get; set; }
2828

2929
[JsonProperty(PropertyName = "total_docs")]
30-
public int TotalDocuments { get; set; }
30+
public long TotalDocuments { get; set; }
3131
[JsonProperty(PropertyName = "total_size")]
3232
public string TotalSize { get; set; }
3333
[JsonProperty(PropertyName = "total_size_in_bytes")]

src/Nest/Domain/Stats/SearchStats.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ namespace Nest
1010
public class SearchStats
1111
{
1212
[JsonProperty(PropertyName = "query_total")]
13-
public int QueryTotal { get; set; }
13+
public long QueryTotal { get; set; }
1414
[JsonProperty(PropertyName = "query_time")]
1515
public string QueryTime { get; set; }
1616
[JsonProperty(PropertyName = "query_time_in_millis")]
1717
public double QueryTimeInMilliseconds { get; set; }
1818
[JsonProperty(PropertyName = "query_current")]
19-
public int QueryCurrent { get; set; }
19+
public long QueryCurrent { get; set; }
2020

2121
[JsonProperty(PropertyName = "fetch_total")]
22-
public int FetchTotal { get; set; }
22+
public long FetchTotal { get; set; }
2323
[JsonProperty(PropertyName = "fetch_time")]
2424
public string FetchTime { get; set; }
2525
[JsonProperty(PropertyName = "fetch_time_in_millis")]
2626
public double FetchTimeInMilliseconds { get; set; }
2727
[JsonProperty(PropertyName = "fetch_current")]
28-
public int FetchCurrent { get; set; }
28+
public long FetchCurrent { get; set; }
2929
}
3030
}

src/Nest/Domain/Stats/TranslogStats.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
namespace Nest
88
{
9-
public class TranslogStats
10-
{
11-
[JsonProperty(PropertyName = "operations")]
12-
public int Operations { get; set; }
13-
}
9+
public class TranslogStats
10+
{
11+
[JsonProperty(PropertyName = "operations")]
12+
public long Operations { get; set; }
13+
}
1414
}

src/Nest/Domain/Stats/TypeStats.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public class TypeStats
1616
[JsonProperty(PropertyName = "index_time_in_millis")]
1717
public double TimeInMilliseconds { get; set; }
1818
[JsonProperty(PropertyName = "index_current")]
19-
public int Current { get; set; }
19+
public long Current { get; set; }
2020
[JsonProperty(PropertyName = "delete_total")]
21-
public int DeleteTotal { get; set; }
21+
public long DeleteTotal { get; set; }
2222
[JsonProperty(PropertyName = "delete_time")]
2323
public string DeleteTime { get; set; }
2424
[JsonProperty(PropertyName = "delete_time_in_millis")]

0 commit comments

Comments
 (0)