Skip to content

Commit d03b26e

Browse files
committed
Update documentation
1 parent a47c490 commit d03b26e

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

docs/aggregations/bucket/significant-terms/significant-terms-aggregation-usage.asciidoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ An aggregation that returns interesting or unusual occurrences of terms in a set
2121

2222
[WARNING]
2323
--
24-
The significant_terms aggregation can be very heavy when run on large indices. Work is in progress
25-
to provide more lightweight sampling techniques.
24+
The significant_terms aggregation can be very heavy when run on large indices. Work is in progress
25+
to provide more lightweight sampling techniques.
2626
As a result, the API for this feature may change in non-backwards compatible ways
2727

2828
--
@@ -37,7 +37,7 @@ s => s
3737
.Aggregations(a => a
3838
.SignificantTerms("significant_names", st => st
3939
.Field(p => p.Name)
40-
.MinimumDocumentCount(10)
40+
.MinimumDocumentCountAsLong(10)
4141
.MutualInformation(mi => mi
4242
.BackgroundIsSuperSet()
4343
.IncludeNegatives()
@@ -55,7 +55,7 @@ new SearchRequest<Project>
5555
Aggregations = new SignificantTermsAggregation("significant_names")
5656
{
5757
Field = Field<Project>(p => p.Name),
58-
MinimumDocumentCount = 10,
58+
MinimumDocumentCountAsLong = 10,
5959
MutualInformation = new MutualInformationHeuristic
6060
{
6161
BackgroundIsSuperSet = true,
@@ -108,7 +108,7 @@ s => s
108108
.Aggregations(a => a
109109
.SignificantTerms("significant_names", st => st
110110
.Field(p => p.Name)
111-
.MinimumDocumentCount(10)
111+
.MinimumDocumentCountAsLong(10)
112112
.MutualInformation(mi => mi
113113
.BackgroundIsSuperSet()
114114
.IncludeNegatives()
@@ -127,7 +127,7 @@ new SearchRequest<Project>
127127
Aggregations = new SignificantTermsAggregation("significant_names")
128128
{
129129
Field = Field<Project>(p => p.Name),
130-
MinimumDocumentCount = 10,
130+
MinimumDocumentCountAsLong = 10,
131131
MutualInformation = new MutualInformationHeuristic
132132
{
133133
BackgroundIsSuperSet = true,
@@ -182,7 +182,7 @@ s => s
182182
.Aggregations(a => a
183183
.SignificantTerms("significant_names", st => st
184184
.Field(p => p.Name)
185-
.MinimumDocumentCount(10)
185+
.MinimumDocumentCountAsLong(10)
186186
.MutualInformation(mi => mi
187187
.BackgroundIsSuperSet()
188188
.IncludeNegatives()
@@ -201,7 +201,7 @@ new SearchRequest<Project>
201201
Aggregations = new SignificantTermsAggregation("significant_names")
202202
{
203203
Field = Field<Project>(p => p.Name),
204-
MinimumDocumentCount = 10,
204+
MinimumDocumentCountAsLong = 10,
205205
MutualInformation = new MutualInformationHeuristic
206206
{
207207
BackgroundIsSuperSet = true,

docs/search/request/suggest-usage.asciidoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ s => s
6464
.Collate(c => c
6565
.Query(q => q
6666
.Inline("{ \"match\": { \"{{field_name}}\": \"{{suggestion}}\" }}")
67-
.Params(p => p.Add("field_name", "title"))
6867
)
68+
.Params(p => p.Add("field_name", "title"))
6969
.Prune()
7070
)
7171
.Confidence(10.1)
@@ -139,10 +139,10 @@ new SearchRequest<Project>
139139
Query = new TemplateQuery
140140
{
141141
Inline = "{ \"match\": { \"{{field_name}}\": \"{{suggestion}}\" }}",
142-
Params = new Dictionary<string, object>
143-
{
144-
{ "field_name", "title" }
145-
}
142+
},
143+
Params = new Dictionary<string, object>
144+
{
145+
{ "field_name", "title" }
146146
},
147147
Prune = true
148148
},
@@ -191,10 +191,10 @@ new SearchRequest<Project>
191191
"phrase": {
192192
"collate": {
193193
"query": {
194-
"inline": "{ \"match\": { \"{{field_name}}\": \"{{suggestion}}\" }}",
195-
"params": {
196-
"field_name": "title"
197-
}
194+
"inline": "{ \"match\": { \"{{field_name}}\": \"{{suggestion}}\" }}"
195+
},
196+
"params": {
197+
"field_name": "title"
198198
},
199199
"prune": true
200200
},

0 commit comments

Comments
 (0)