Skip to content

Commit e3e4a1e

Browse files
committed
Update documentation
1 parent ed44271 commit e3e4a1e

File tree

6 files changed

+34
-29
lines changed

6 files changed

+34
-29
lines changed

docs/aggregations/bucket/ip-range/ip-range-aggregation-usage.asciidoc

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ please modify the original csharp file found at the link and submit the PR with
2222
[source,csharp]
2323
----
2424
s => s
25-
.Aggregations(a => a
26-
.IpRange("ip_ranges", ip => ip
27-
.Field(p => p.LeadDeveloper.IPAddress)
28-
.Ranges(
29-
r => r.To("10.0.0.5"),
30-
r => r.From("10.0.0.5")
31-
)
25+
.Aggregations(a => a.IpRange("ip_ranges", ip => ip
26+
.Field(p => p.LeadDeveloper.IPAddress)
27+
.Ranges(
28+
r => r.To("127.0.0.1"),
29+
r => r.From("127.0.0.1")
3230
)
33-
)
31+
))
3432
----
3533

3634
==== Object Initializer syntax example
@@ -44,8 +42,8 @@ new SearchRequest<Project>
4442
Field = Field((Project p) => p.LeadDeveloper.IPAddress),
4543
Ranges = new List<Nest.IpRange>
4644
{
47-
new Nest.IpRange { To = "10.0.0.5" },
48-
new Nest.IpRange { From = "10.0.0.5" }
45+
new Nest.IpRange {To = "127.0.0.1"},
46+
new Nest.IpRange {From = "127.0.0.1"}
4947
}
5048
}
5149
}
@@ -61,10 +59,10 @@ new SearchRequest<Project>
6159
"field": "leadDeveloper.iPAddress",
6260
"ranges": [
6361
{
64-
"to": "10.0.0.5"
62+
"to": "127.0.0.1"
6563
},
6664
{
67-
"from": "10.0.0.5"
65+
"from": "127.0.0.1"
6866
}
6967
]
7068
}

docs/analysis/token-filters/token-filter-usage.asciidoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,17 @@ InitializerExample
312312
"y",
313313
"z"
314314
]
315+
},
316+
"phonetic": {
317+
"type": "phonetic",
318+
"encoder": "beider_morse",
319+
"rule_type": "exact",
320+
"name_type": "sephardic",
321+
"languageset": [
322+
"cyrillic",
323+
"english",
324+
"hebrew"
325+
]
315326
}
316327
}
317328
}

docs/query-dsl/full-text/query-string/query-string-usage.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ q
3232
.Analyzer("standard")
3333
.QuoteAnalyzer("quote-an")
3434
.AllowLeadingWildcard()
35-
.AutoGeneratePhraseQueries()
3635
.MaximumDeterminizedStates(2)
36+
.AutoGeneratePhraseQueries()
3737
.LowercaseExpendedTerms()
38+
.Locale("en_US")
39+
.UseDisMax()
3840
.EnablePositionIncrements()
3941
.Escape()
40-
.UseDisMax()
4142
.FuzzyPrefixLength(2)
4243
.FuzzyMaxExpansions(3)
4344
.FuzzyRewrite(MultiTermQueryRewrite.ConstantScore)
@@ -48,7 +49,6 @@ q
4849
.MinimumShouldMatch(2)
4950
.QuoteFieldSuffix("'")
5051
.Lenient()
51-
.Locale("en_US")
5252
.Timezone("root")
5353
)
5454
----
@@ -68,13 +68,13 @@ new QueryStringQuery
6868
Analyzer = "standard",
6969
QuoteAnalyzer = "quote-an",
7070
AllowLeadingWildcard = true,
71-
AutoGeneratePhraseQueries = true,
7271
MaximumDeterminizedStates = 2,
72+
AutoGeneratePhraseQueries = true,
7373
LowercaseExpendedTerms = true,
7474
Locale = "en_US",
75+
UseDisMax = true,
7576
EnablePositionIncrements = true,
7677
Escape = true,
77-
UseDisMax = true,
7878
FuzzyPrefixLength = 2,
7979
FuzzyMaxExpansions = 3,
8080
FuzzyMultiTermQueryRewrite = MultiTermQueryRewrite.ConstantScore,
@@ -84,7 +84,7 @@ new QueryStringQuery
8484
AnalyzeWildcard = true,
8585
MinimumShouldMatch = 2,
8686
QuoteFieldSuffix = "'",
87-
Lenient = true,
87+
Lenient = true,
8888
Timezone = "root"
8989
}
9090
----

docs/query-dsl/geo/shape/indexed-shape/geo-shape-indexed-shape-query-usage.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ new GeoIndexedShapeQuery
6565
----
6666
{
6767
"geo_shape": {
68+
"_name": "named_query",
69+
"boost": 1.1,
6870
"location": {
69-
"_name": "named_query",
70-
"boost": 1.1,
7171
"indexed_shape": {
7272
"id": 2,
7373
"type": "project",

docs/query-dsl/geo/shape/polygon/geo-shape-polygon-query-usage.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ q
2626
.Name("named_query")
2727
.Boost(1.1)
2828
.Field(p => p.Location)
29-
.Coordinates(this._coordinates)
29+
.Coordinates(this._polygonCoordinates)
3030
.Relation(GeoShapeRelation.Intersects)
31-
.IgnoreUnmapped()
31+
.IgnoreUnmapped(false)
3232
)
3333
----
3434

@@ -41,7 +41,7 @@ new GeoShapePolygonQuery
4141
Name = "named_query",
4242
Boost = 1.1,
4343
Field = Field<Project>(p => p.Location),
44-
Shape = new PolygonGeoShape(this._coordinates),
44+
Shape = new PolygonGeoShape(this._polygonCoordinates),
4545
Relation = GeoShapeRelation.Intersects,
4646
IgnoreUnmapped = false
4747
}

docs/search/request/inner-hits-usage.asciidoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ s => s
4848
.InnerHits(ih => ih
4949
.DocValueFields(f=>f.Field(p=>p.Name))
5050
.Name("princes")
51-
.IgnoreUnmapped(false)
5251
)
53-
5452
) || q.Nested(n => n
5553
.Path(p => p.Foes)
5654
.Query(nq => nq.MatchAll())
@@ -73,8 +71,7 @@ new SearchRequest<King>(Index, typeof(King))
7371
InnerHits = new InnerHits
7472
{
7573
Name = "princes",
76-
DocValueFields = Field<Prince>(p=>p.Name),
77-
IgnoreUnmapped = false
74+
DocValueFields = Field<Prince>(p=>p.Name)
7875
}
7976
} || new NestedQuery
8077
{
@@ -102,8 +99,7 @@ new SearchRequest<King>(Index, typeof(King))
10299
"name": "princes",
103100
"docvalue_fields": [
104101
"name"
105-
],
106-
"ignore_unmapped": false
102+
]
107103
}
108104
}
109105
},

0 commit comments

Comments
 (0)