You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: new_docs/contents/breaking-changes.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
2
template: layout.jade
3
-
title: Breaking changes
3
+
title: Breaking Changes
4
4
menusection: concepts
5
5
menuitem: breaking-changes
6
6
---
7
7
8
-
#Breaking changes
8
+
#Breaking Changes
9
9
10
10
## Elasticsearch 1.0
11
11
12
12
Elasticsearch 1.0 comes with it's own set of breaking changes which [are all documented in the elasticsearch documentation](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/breaking-changes.html). This page describes breaking changes NEST introduces in its 1.0 release and to an extend how you should handle Elasticsearch 1.0 changes in your exisiting code base using NEST prior to NEST 1.0.
13
13
14
14
## NEST 1.0
15
15
16
-
### Strong named packages
16
+
### Strong Named Packages
17
17
18
18
Prior to 1.0 NEST came with a `NEST` and `NEST.Signed` nuget package. In 1.0 there is one package called `NEST` which is a signed strong named assembly. We follow the example of JSON.NET and only change our `AssemblyVersion` on major releases only update the `AssemblyFileVersion` for every release. This way you get most of the benefits of unsigned assemblies while still providing support for developers who's business guidelines mandates the usage of signed assemblies.
19
19
@@ -38,7 +38,7 @@ to `PutMappingDescriptor<T>`
38
38
39
39
IResponse.Error.Exception no longer exists, it is inlined to IResponse.OriginalException. The Error property did not hold any information that was not available on IResponse.ConnectionStatus.
40
40
41
-
### Response shortcuts
41
+
### Response Shortcuts
42
42
43
43
Prior to 1.0 some calls directly returned a bool or value instead of the full envelopped Elasticsearch response.
44
44
@@ -63,7 +63,7 @@ Or in a separate put mapping call:
63
63
64
64
var response = this._client.Map<ElasticsearchProject>(m=>m.MapFromAttributes()......);
65
65
66
-
#### Alias helpers
66
+
#### Alias Helpers
67
67
68
68
NEST 0.12.0 had some alias helpers, `SwapAlias()`, `GetIndicesPointingToAlias()` these have been removed in favor of just `Alias()` and `GetAliases()`. Especially the later could benefit from some extension methods that make the common use cases a bit easier to program with. These did not make the beta release.
Copy file name to clipboardExpand all lines: new_docs/contents/elasticsearch-net/building-requests.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ menuitem: esnet-building-requests
9
9
10
10
This section decribes how to build requests to Elasticsearch.
11
11
12
-
## Calling an API endpoint
12
+
## Calling an API Endpoint
13
13
14
14
`Elasticsearch.Net` maps **all** the `Elasticsearch` API endpoints to methods. The reason it can do this is because all these methods are generated from
15
15
[the official client rest specification](https://github.com/elasticsearch/elasticsearch/tree/master/rest-api-spec/api). This specification documents all
@@ -32,7 +32,7 @@ Unknown querystring parameters can still be added:
32
32
33
33
The querystring parameter is always optional.
34
34
35
-
## Providing request body
35
+
## Providing Request Body
36
36
37
37
Some endpoints need a request body this can be passed in a couple of ways.
@@ -107,7 +107,7 @@ This will leave property names untouched.
107
107
108
108
Properties marked with `[ElasticAttibute(Name="")]` or `[JsonProperty(Name="")]` will pass the configured name verbatim.
109
109
110
-
## Id inference
110
+
## Id Inference
111
111
112
112
Whenever an object is passed that needs to specify an id (i.e index, bulk operations) the object is inspected to see if it has an `Id` property and if so, that value will be used.
Copy file name to clipboardExpand all lines: new_docs/contents/nest/writing-queries.markdown
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
template: layout.jade
3
-
title: Connecting
3
+
title: Writing Queries
4
4
menusection: concepts
5
5
menuitem: writing-queries
6
6
---
@@ -14,7 +14,7 @@ One of the most important things to grasp when using Nest is how to write querie
14
14
///EXAMPLE HERE
15
15
);
16
16
17
-
## Raw strings
17
+
## Raw Strings
18
18
Although not preferred by me personally, many folks like to build their own JSON strings and just pass that along.
19
19
20
20
.QueryRaw("\"match_all\" : { }")
@@ -25,7 +25,7 @@ Nest does not modify this in anyway and just writes this straight into the JSON
25
25
## Query DSL
26
26
The preferred way to write queries, since it gives you alot of cool features.
27
27
28
-
### Lambda expressions
28
+
### Lambda Expressions
29
29
.Query(q=>q
30
30
.Term(p=>p.Name, "NEST")
31
31
)
@@ -44,7 +44,7 @@ Of course if you need to pass the property name as string NEST will allow you to
44
44
.Term("followers.firstName", "martijn")
45
45
)
46
46
47
-
### Static query/filter generator.
47
+
### Static Query/Filter Generator
48
48
Sometimes you'll need to resuse a filter or query often. To aid with this you can also write queries like this:
49
49
50
50
var termQuery = Query<ElasticSearchProject>
@@ -61,7 +61,7 @@ Sometimes you'll need to resuse a filter or query often. To aid with this you ca
61
61
62
62
Similarly `Filter<T>.[Filter]()` methods exist for filters.
63
63
64
-
### Boolean queries
64
+
### Boolean Queries
65
65
As can be seen in the previous example writing out boolean queries can turn into a really tedious and verbose effort. Luckily NEST supports bitwise operators and so we can rewrite the previous as such:
66
66
67
67
.Query(q=>q.MatchAll() && termQuery)
@@ -96,7 +96,7 @@ You can mix and match this to any level of complexity until it satisfies your qu
96
96
97
97
Will query all php clients except 'Elastica` or where the name equals `NEST`.
98
98
99
-
#### Clean output support
99
+
#### Clean Output Support
100
100
Normally writing three boolean must clauses looks like this (psuedo code)
101
101
102
102
must
@@ -114,7 +114,7 @@ A naive implemenation of the bitwise operators would make all the queries sent t
114
114
115
115
This degrades rather rapidly and makes inspecting generated queries quite a chore. NEST does it's best to detect these cases and will always write them in the first, cleaner form.
116
116
117
-
## Conditionless queries
117
+
## Conditionless Queries
118
118
119
119
Writing complex boolean queries is one thing, but more often then not you'll want to make decisions on how to query based on user input.
0 commit comments