Skip to content

Commit a66ad0e

Browse files
committed
Merge branch 'master' into feature/ingest-api
# Conflicts: # src/Nest/Nest.csproj # src/Tests/Tests.csproj
2 parents a1833b5 + c4f3b38 commit a66ad0e

File tree

888 files changed

+2245
-26413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

888 files changed

+2245
-26413
lines changed

build.bat

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ REM - elasticsearch_versions can be multiple separated with a semi-colon ';'
1212
if errorlevel 1 (
1313
exit /b %errorlevel%
1414
)
15-
.paket\paket.exe install
15+
.paket\paket.exe restore
1616
if errorlevel 1 (
1717
exit /b %errorlevel%
1818
)
@@ -23,7 +23,7 @@ SET ESVERSIONS=
2323
SET DNXVERSION="default"
2424
SET SKIPTESTS=0
2525
SET APIKEY=
26-
26+
SET FEED="elasticsearch-net"
2727

2828
IF /I "%1"=="skiptests" (
2929
set SKIPTESTS="1"
@@ -51,8 +51,7 @@ IF /I "%1%"=="integrate" (
5151

5252
IF /I "%1%"=="canary" (
5353
IF NOT [%2]==[] (set APIKEY="%2")
54-
IF /I "%3"=="skiptests" (set SKIPTESTS=1)
55-
IF /I "%2"=="skiptests" (set SKIPTESTS=1)
54+
IF NOT [%3]==[] (set FEED="%3")
5655
)
5756

58-
"packages\build\FAKE\tools\Fake.exe" "build\\scripts\\Targets.fsx" "target=%TARGET%" "version=%VERSION%" "esversions=%ESVERSIONS%" "skiptests=%SKIPTESTS%" "apiKey=%APIKEY%"
57+
"packages\build\FAKE\tools\Fake.exe" "build\\scripts\\Targets.fsx" "target=%TARGET%" "version=%VERSION%" "esversions=%ESVERSIONS%" "skiptests=%SKIPTESTS%" "apiKey=%APIKEY%" "feed=%FEED%"

build/scripts/Releasing.fsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,11 @@ type Release() =
102102
MoveFile Paths.NugetOutput package
103103
)
104104

105-
static member PublishCanaryBuild accessKey =
105+
static member PublishCanaryBuild accessKey feed =
106106
!! "build/output/_packages/*-ci*.nupkg"
107107
|> Seq.iter(fun f ->
108-
let success = Tooling.execProcess (Tooling.NugetFile()) ["push"; f; accessKey; "-source"; "https://www.myget.org/F/elasticsearch-net/api/v2/package"]
108+
let source = "https://www.myget.org/F/" + feed + "/api/v2/package"
109+
let success = Tooling.execProcess (Tooling.NugetFile()) ["push"; f; accessKey; "-source"; source]
109110
match success with
110111
| 0 -> traceFAKE "publish to myget succeeded" |> ignore
111112
| _ -> failwith "publish to myget failed" |> ignore

build/scripts/Targets.fsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ Target "Clean" <| fun _ -> CleanDir Paths.BuildOutput
3737

3838
Target "BuildApp" <| fun _ -> Build.Compile()
3939

40-
Target "Test" <| fun _ -> Tests.RunUnitTests()
40+
Target "Test" <| fun _ -> Tests.RunUnitTests()
4141

42-
Target "QuickTest" <| fun _ -> Tests.RunUnitTests()
42+
Target "QuickTest" <| fun _ -> Tests.RunUnitTests()
4343

44-
Target "Integrate" <| fun _ -> Tests.RunIntegrationTests() (getBuildParamOrDefault "esversions" "")
44+
Target "Integrate" <| fun _ -> Tests.RunIntegrationTests() (getBuildParamOrDefault "esversions" "")
4545

46-
Target "WatchTests" <| fun _ ->
46+
Target "WatchTests" <| fun _ ->
4747
traceFAKE "Starting quick test (incremental compile then test)"
4848
use watcher = (!! "src/Tests/**/*.cs").And("src/Tests/**/*.md") |> WatchChanges (fun changes ->
4949
printfn "%A" changes
@@ -59,7 +59,7 @@ Target "Profile" <| fun _ -> Profiler.Run()
5959

6060
Target "Benchmark" <| fun _ -> Benchmarker.Run()
6161

62-
Target "QuickCompile" <| fun _ -> Build.QuickCompile()
62+
Target "QuickCompile" <| fun _ -> Build.QuickCompile()
6363

6464
Target "Version" <| fun _ ->
6565
Versioning.PatchAssemblyInfos()
@@ -74,7 +74,8 @@ Target "Release" <| fun _ ->
7474
Target "Canary" <| fun _ ->
7575
trace "Running canary build"
7676
let apiKey = (getBuildParam "apikey");
77-
if (not (String.IsNullOrWhiteSpace apiKey) || apiKey = "ignore") then Release.PublishCanaryBuild apiKey
77+
let feed = (getBuildParamOrDefault "feed" "elasticsearch-net");
78+
if (not (String.IsNullOrWhiteSpace apiKey) || apiKey = "ignore") then Release.PublishCanaryBuild apiKey feed
7879

7980
BuildFailureTarget "NotifyTestFailures" <| fun _ -> Tests.Notify() |> ignore
8081

docs/asciidoc/aggregations/bucket/filter/filter-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[[filter-aggregation-usage]]
88
== Filter Aggregation Usage
99

10-
Defines a single bucket of all the documents in the current document set context that match a specified filter.
10+
Defines a single bucket of all the documents in the current document set context that match a specified filter.
1111
Often this will be used to narrow down the current aggregation context to a specific set of documents.
1212

1313
Be sure to read the Elasticsearch documentation on {ref_current}/search-aggregations-bucket-filter-aggregation.html[Filter Aggregation]

docs/asciidoc/aggregations/pipeline/moving-average/moving-average-ewma-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ new SearchRequest<Project>()
4545
{
4646
Field = "startedOn",
4747
Interval = DateInterval.Month,
48-
Aggregations =
48+
Aggregations =
4949
new SumAggregation("commits", "numberOfCommits") &&
5050
new MovingAverageAggregation("commits_moving_avg", "commits")
5151
{

docs/asciidoc/aggregations/pipeline/moving-average/moving-average-holt-linear-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ new SearchRequest<Project>()
4646
{
4747
Field = "startedOn",
4848
Interval = DateInterval.Month,
49-
Aggregations =
49+
Aggregations =
5050
new SumAggregation("commits", "numberOfCommits") &&
5151
new MovingAverageAggregation("commits_moving_avg", "commits")
5252
{

docs/asciidoc/aggregations/pipeline/moving-average/moving-average-holt-winters-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ new SearchRequest<Project>()
5151
{
5252
Field = "startedOn",
5353
Interval = DateInterval.Month,
54-
Aggregations =
54+
Aggregations =
5555
new SumAggregation("commits", "numberOfCommits") &&
5656
new MovingAverageAggregation("commits_moving_avg", "commits")
5757
{

docs/asciidoc/aggregations/pipeline/moving-average/moving-average-linear-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ new SearchRequest<Project>()
4444
{
4545
Field = "startedOn",
4646
Interval = DateInterval.Month,
47-
Aggregations =
47+
Aggregations =
4848
new SumAggregation("commits", "numberOfCommits") &&
4949
new MovingAverageAggregation("commits_moving_avg", "commits")
5050
{

docs/asciidoc/aggregations/pipeline/moving-average/moving-average-simple-aggregation-usage.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ new SearchRequest<Project>()
4545
{
4646
Field = "startedOn",
4747
Interval = DateInterval.Month,
48-
Aggregations =
48+
Aggregations =
4949
new SumAggregation("commits", "numberOfCommits") &&
5050
new MovingAverageAggregation("commits_moving_avg", "commits")
5151
{

docs/asciidoc/client-concepts/connection-pooling/building-blocks/date-time-providers.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[[date-time-providers]]
88
== Date time providers
99

10-
Not typically something you'll have to pass to the client but all calls to `System.DateTime.UtcNow`
10+
Not typically something you'll have to pass to the client but all calls to `System.DateTime.UtcNow`
1111
in the client have been abstracted by `IDateTimeProvider`. This allows us to unit test timeouts and cluster failover
1212
without being bound to wall clock time as calculated by using `System.DateTime.UtcNow` directly.
1313

@@ -45,7 +45,7 @@ var maxTimeout = TimeSpan.FromMinutes(30);
4545
Plotting these defaults looks as followed:
4646

4747
[[timeout]]
48-
.Default formula, x-axis time in minutes, y-axis number of attempts to revive
48+
.Default formula, x-axis number of attempts to revive, y-axis time in minutes
4949
image::timeoutplot.png[dead timeout]
5050

5151
The goal here is that whenever a node is resurrected and is found to still be offline, we send it_back to the doghouse_ for an ever increasingly long period, until we hit a bounded maximum.

0 commit comments

Comments
 (0)