Skip to content

Commit 11db75b

Browse files
committed
Merge branch 'enhancement/great-docs-update' into 5.x
2 parents 92bd403 + 6268353 commit 11db75b

File tree

422 files changed

+17456
-9386
lines changed

Some content is hidden

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

422 files changed

+17456
-9386
lines changed

build/scripts/Building.fsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ module Build =
5353
)
5454

5555
let private compileDesktop() =
56-
Tooling.MsBuild.Rebuild DotNetFramework.Net45.Identifier
57-
Tooling.MsBuild.Rebuild DotNetFramework.Net46.Identifier
56+
Tooling.MsBuild.Rebuild DotNetFramework.Net45
57+
Tooling.MsBuild.Rebuild DotNetFramework.Net46
5858

5959
let private gitLink() =
6060
DotNetProject.AllPublishable
@@ -70,7 +70,7 @@ module Build =
7070

7171
let Compile() =
7272
match quickBuild with
73-
| true -> Tooling.MsBuild.Build DotNetFramework.Net45.Identifier
73+
| true -> Tooling.MsBuild.Build DotNetFramework.Net45
7474
| false ->
7575
compileDesktop()
7676
compileCore()

build/scripts/Tooling.fsx

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,16 @@ module Tooling =
158158
let DotNet = new DotNetTooling("dotnet.exe")
159159

160160
type MsBuildTooling() =
161-
162-
member this.Build (framework:Projects.DotNetFrameworkIdentifier) =
163-
let solution = Paths.Source "Elasticsearch.sln";
161+
// Exclude DocGenerator from .NET 4.5 build as it depends on a Roslyn library
162+
// that is built against .NET 4.5.2
163+
let solutionForFramework framework =
164+
match framework with
165+
| Net45 -> Paths.Source "Elasticsearch.Net45.sln"
166+
| _ -> Paths.Source "Elasticsearch.sln"
167+
168+
member this.Build (framework:Projects.DotNetFramework) =
169+
let solution = solutionForFramework framework
170+
let identifier = framework.Identifier
164171
let setParams defaults =
165172
{ defaults with
166173
Verbosity = Some(Quiet)
@@ -169,14 +176,15 @@ module Tooling =
169176
[
170177
"Optimize", "True"
171178
"Configuration", "Release"
172-
"TargetFrameworkVersion", framework.MSBuild
173-
"DefineConstants", framework.DefineConstants
179+
"TargetFrameworkVersion", identifier.MSBuild
180+
"DefineConstants", identifier.DefineConstants
174181
]
175182
}
176183
build setParams solution
177184

178-
member this.Rebuild (framework:Projects.DotNetFrameworkIdentifier) =
179-
let solution = Paths.Source "Elasticsearch.sln";
185+
member this.Rebuild (framework:Projects.DotNetFramework) =
186+
let solution = solutionForFramework framework
187+
let identifier = framework.Identifier
180188
let setParams defaults =
181189
{ defaults with
182190
Verbosity = Some(Quiet)
@@ -186,8 +194,8 @@ module Tooling =
186194
"OutputPathBaseDir", Path.GetFullPath "build\\output"
187195
"Optimize", "True"
188196
"Configuration", "Release"
189-
"TargetFrameworkVersion", framework.MSBuild
190-
"DefineConstants", framework.DefineConstants
197+
"TargetFrameworkVersion", identifier.MSBuild
198+
"DefineConstants", identifier.DefineConstants
191199
]
192200
}
193201

docs/5.0-breaking-changes/elasticsearch-net-breaking-changes.asciidoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[elasticsearch-net-breaking-changes]]
22
== Elasticsearch.Net Breaking Changes
33

4-
This lists all the *binary* breaking changes in Elasticsearch.Net.
4+
This lists all the *binary* breaking changes in Elasticsearch.Net from 2.x to 5.x.
55

66
[float]
77
[[enums]]
@@ -165,6 +165,7 @@ _Declaration changed (Breaking)_ +
165165
*public method Elasticsearch.Net.UpdateRequestParameters.Refresh*
166166
_Declaration changed (Breaking)_
167167

168+
168169
[float]
169170
[[waitforactiveshards-now-takes-a-string]]
170171
=== WaitForActiveShards now takes a string
@@ -341,7 +342,7 @@ _Declaration changed (Breaking)_
341342
[[removed-in-5.x-after-obsolete-period]]
342343
=== Removed in 5.x after obsolete period
343344

344-
These are types/properties/methods marked obsolete in NEST 2.x that have
345+
These are types/properties/methods marked obsolete in Elasticsearch.Net 2.x that have
345346
now been removed.
346347

347348
*public method Elasticsearch.Net.AnalyzeRequestParameters.Analyzer*

docs/5.0-breaking-changes/nest-breaking-changes.asciidoc

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
== NEST Breaking Changes
33

44
Oh my goodness, this looks like a lot of breaking changes! This is true
5-
but please take note that this list is very very extensive It includes
6-
every single _binary_ breaking change. In a lot of cases these will not
7-
necessarily equate to compiler errors.
5+
but please take note that this list is very extensive and includes
6+
*every* single _binary_ breaking change. In a lot of cases, these will not
7+
necessarily equate to compiler errors nor changes in your codebase.
88

99
[float]
1010
[[statsaggregator-renamed-to-statsaggregation]]
@@ -430,6 +430,8 @@ TIndexSettings>.AutoExpandReplicas* _Declaration changed (Breaking)_
430430
[[dslprettyprintvisitor-methods-are-now-virtual]]
431431
=== DslPrettyPrintVisitor methods are now virtual
432432

433+
This change means that you only need to override the methods that you wish to change the implementation for.
434+
433435
[float]
434436
[[nest-visitors-should-be-bound-to-interface]]
435437
=== Nest visitors should be bound to interface
@@ -1032,8 +1034,8 @@ also the hacks from 2.x have been removed
10321034
=== Allow source filter to send false
10331035

10341036
In NEST 2.x we would always send Source.Exclude as
1035-
`_source: { exclude: [""] }` in 5.x the we use a union of `bool`
1036-
`ISourceFiler` so NEST can send and recieve `_source: false`. Which
1037+
`_source: { exclude: [""] }`. in 5.x, we now use a union of `bool` and
1038+
`ISourceFiler`, so NEST can send and receive `_source: false`. Which
10371039
should short circuit some routines on the server
10381040

10391041
See also: https://github.com/elastic/elasticsearch-net/pull/2200[github PR 2200]
@@ -1493,8 +1495,8 @@ public enum StringFielddataFormat
14931495
[[uncategorized]]
14941496
=== Uncategorized
14951497

1496-
Misc. changes that are yet to be categorized. Please open an issue if
1497-
you are bit by these and feel it warrants an explanation.
1498+
Miscellaneous changes that are yet to be categorized. Please open an issue if
1499+
you are bitten by any of these and feel it warrants an explanation.
14981500

14991501
*public method Nest.DeleteByQueryDescriptor<T>.Routing* _Declaration
15001502
changed (Breaking)_
@@ -1920,12 +1922,11 @@ TValue>.BackingDictionary* +
19201922

19211923
[float]
19221924
[[nest-cancellationtoken]]
1923-
CancellationToken
1924-
-----------------
1925+
=== CancellationToken
19251926

1926-
With NEST 2.x async methods, a cancellation tokens could be passed as
1927-
part of the RequestConfiguration. This was not very discoverable and so
1928-
each async method can now accept an optional cancellation token as an
1927+
With NEST 2.x async methods, a cancellation token could be passed as
1928+
part of the `RequestConfiguration` on the request. This was not very discoverable and so
1929+
each async method now accepts an optional `CancellationToken` as an
19291930
argument, making the API more async idiomatic.
19301931

19311932
*Nest.BulkAllObservable<T>..ctor* +

docs/aggregations-usage.asciidoc

Lines changed: 0 additions & 110 deletions
This file was deleted.

0 commit comments

Comments
 (0)