-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Composite aggregation page. #9479
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Dave Welsch <dwelsch@expertsupport.com>
Thank you for submitting your PR. The PR states are In progress (or Draft) -> Tech review -> Doc review -> Editorial review -> Merged. Before you submit your PR for doc review, make sure the content is technically accurate. If you need help finding a tech reviewer, tag a maintainer. When you're ready for doc review, tag the assignee of this PR. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference). The doc reviewer will arrange for an editorial review. |
@rishabhmaurya Could you please review this PR? Thanks! |
|
||
Use `geotile_grid` sources to aggregate `geo_point` values into buckets representing map tiles. As with the other composite aggregation `sources`, by default results include only buckets that contain data. | ||
|
||
Each cell corresponds to a [map tile](https://en.wikipedia.org/wiki/Tiled_web_map). Cell labels use a "{zoom}/{x}/{y}" format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a site that does a good job of explaining the x,y system that geo-grid uses?
Does OpenSearch use one of the available geo-grid standards?
|
||
Use the `date_histogram` to create composite aggregations of date ranges. | ||
|
||
OpenSearch represents dates, including `date_interval` bucket keys, as `long` integers representing [milliseconds since epoch](https://en.wikipedia.org/wiki/Unix_time). You can output a date format instead using the `format` parameter. This does not change the key order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please confirm that the key order does not change. Key order is based on the INT64 value, correct?
} | ||
``` | ||
|
||
## Paginating composite results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How long are results cached for display pagination?
Are there any shortcuts to displaying result pages, or do you have to give it the entire request plus after
parameter each time?
- /query-dsl/aggregations/bucket/composite/ | ||
--- | ||
|
||
# Composite aggregations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There does not seem to be any mention of index sorting in OpenSearch. Is it possible to speed up composite
searches on large datasets by sorting an index? If so, is this a common enough use case to mention on this page?
Description
Add a page for composite aggregations. Includes examples for all 4 source types, combining source types, sub-aggregations, and pagination.
Issues Resolved
Version
Frontend features
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.