-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split query DSL, analyzer, and aggregation sections and add more to a…
…nalyzer section (#4693) * Add analyzer documentation Signed-off-by: Fanit Kolchina <[email protected]> * Add index and search analyzer pages Signed-off-by: Fanit Kolchina <[email protected]> * Doc review comments Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Melissa Vagi <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * More doc review comments Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> * Implemented editorial comments Signed-off-by: Fanit Kolchina <[email protected]> * Update index-analyzers.md Signed-off-by: kolchfa-aws <[email protected]> --------- Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: kolchfa-aws <[email protected]> Co-authored-by: Melissa Vagi <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
- Loading branch information
1 parent
aed1d68
commit a87fdc0
Showing
76 changed files
with
624 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
layout: default | ||
title: Bucket aggregations | ||
has_children: true | ||
has_toc: false | ||
nav_order: 3 | ||
redirect_from: | ||
- /opensearch/bucket-agg/ | ||
- /query-dsl/aggregations/bucket-agg/ | ||
- /query-dsl/aggregations/bucket/ | ||
- /aggregations/bucket-agg/ | ||
--- | ||
|
||
# Bucket aggregations | ||
|
||
Bucket aggregations categorize sets of documents as buckets. The type of bucket aggregation determines the bucket for a given document. | ||
|
||
You can use bucket aggregations to implement faceted navigation (usually placed as a sidebar on a search result landing page) to help your users filter the results. | ||
|
||
## Supported bucket aggregations | ||
|
||
OpenSearch supports the following bucket aggregations: | ||
|
||
- [Adjacency matrix]({{site.url}}{{site.baseurl}}/aggregations/bucket/adjacency-matrix/) | ||
- [Date histogram]({{site.url}}{{site.baseurl}}/aggregations/bucket/date-histogram/) | ||
- [Date range]({{site.url}}{{site.baseurl}}/aggregations/bucket/date-range/) | ||
- [Diversified sampler]({{site.url}}{{site.baseurl}}/aggregations/bucket/diversified-sampler/) | ||
- [Filter]({{site.url}}{{site.baseurl}}/aggregations/bucket/filter/) | ||
- [Filters]({{site.url}}{{site.baseurl}}/aggregations/bucket/filters/) | ||
- [Geodistance]({{site.url}}{{site.baseurl}}/aggregations/bucket/geo-distance/) | ||
- [Geohash grid]({{site.url}}{{site.baseurl}}/aggregations/bucket/geohash-grid/) | ||
- [Geohex grid]({{site.url}}{{site.baseurl}}/aggregations/bucket/geohex-grid/) | ||
- [Geotile grid]({{site.url}}{{site.baseurl}}/aggregations/bucket/geotile-grid/) | ||
- [Global]({{site.url}}{{site.baseurl}}/aggregations/bucket/global/) | ||
- [Histogram]({{site.url}}{{site.baseurl}}/aggregations/bucket/histogram/) | ||
- [IP range]({{site.url}}{{site.baseurl}}/aggregations/bucket/ip-range/) | ||
- [Missing]({{site.url}}{{site.baseurl}}/aggregations/bucket/missing/) | ||
- [Multi-terms]({{site.url}}{{site.baseurl}}/aggregations/bucket/multi-terms/) | ||
- [Nested]({{site.url}}{{site.baseurl}}/aggregations/bucket/nested/) | ||
- [Range]({{site.url}}{{site.baseurl}}/aggregations/bucket/range/) | ||
- [Reverse nested]({{site.url}}{{site.baseurl}}/aggregations/bucket/reverse-nested/) | ||
- [Sampler]({{site.url}}{{site.baseurl}}/aggregations/bucket/sampler/) | ||
- [Significant terms]({{site.url}}{{site.baseurl}}/aggregations/bucket/significant-terms/) | ||
- [Significant text]({{site.url}}{{site.baseurl}}/aggregations/bucket/significant-text/) | ||
- [Terms]({{site.url}}{{site.baseurl}}/aggregations/bucket/terms/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
layout: default | ||
title: Metric aggregations | ||
has_children: true | ||
has_toc: false | ||
nav_order: 2 | ||
redirect_from: | ||
- /opensearch/metric-agg/ | ||
- /query-dsl/aggregations/metric-agg/ | ||
- /aggregations/metric-agg/ | ||
- /query-dsl/aggregations/metric/ | ||
--- | ||
|
||
# Metric aggregations | ||
|
||
Metric aggregations let you perform simple calculations such as finding the minimum, maximum, and average values of a field. | ||
|
||
## Types of metric aggregations | ||
|
||
There are two types of metric aggregations: single-value metric aggregations and multi-value metric aggregations. | ||
|
||
### Single-value metric aggregations | ||
|
||
Single-value metric aggregations return a single metric, for example, `sum`, `min`, `max`, `avg`, `cardinality`, or `value_count`. | ||
|
||
### Multi-value metric aggregations | ||
|
||
Multi-value metric aggregations return more than one metric. These include `stats`, `extended_stats`, `matrix_stats`, `percentile`, `percentile_ranks`, `geo_bound`, `top_hits`, and `scripted_metric`. | ||
|
||
## Supported metric aggregations | ||
|
||
OpenSearch supports the following metric aggregations: | ||
|
||
- [Average]({{site.url}}{{site.baseurl}}/aggregations/metric/average/) | ||
- [Cardinality]({{site.url}}{{site.baseurl}}/aggregations/metric/cardinality/) | ||
- [Extended stats]({{site.url}}{{site.baseurl}}/aggregations/metric/extended-stats/) | ||
- [Geobounds]({{site.url}}{{site.baseurl}}/aggregations/metric/geobounds/) | ||
- [Matrix stats]({{site.url}}{{site.baseurl}}/aggregations/metric/matrix-stats/) | ||
- [Maximum]({{site.url}}{{site.baseurl}}/aggregations/metric/maximum/) | ||
- [Minimum]({{site.url}}{{site.baseurl}}/aggregations/metric/minimum/) | ||
- [Percentile ranks]({{site.url}}{{site.baseurl}}/aggregations/metric/percentile-ranks/) | ||
- [Percentile]({{site.url}}{{site.baseurl}}/aggregations/metric/percentile/) | ||
- [Scripted metric]({{site.url}}{{site.baseurl}}/aggregations/metric/scripted-metric/) | ||
- [Stats]({{site.url}}{{site.baseurl}}/aggregations/metric/stats/) | ||
- [Sum]({{site.url}}{{site.baseurl}}/aggregations/metric/sum/) | ||
- [Top hits]({{site.url}}{{site.baseurl}}/aggregations/metric/top-hits/) | ||
- [Value count]({{site.url}}{{site.baseurl}}/aggregations/metric/value-count/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
_query-dsl/aggregations/metric/stats.md → _aggregations/metric/stats.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.