Skip to content
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 aggregations to Search-Hybrid search section #6661

Conversation

martin-gaievski
Copy link
Member

@martin-gaievski martin-gaievski commented Mar 13, 2024

Description

Extend section for Hybrid search by adding information and examples for aggregations.

Issues Resolved

Closes #6644

Checklist

  • By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
    For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@martin-gaievski martin-gaievski force-pushed the aggregations_for_hybrid_query branch 2 times, most recently from 480f60a to 6d1b3e6 Compare March 13, 2024 04:55
@martin-gaievski martin-gaievski force-pushed the aggregations_for_hybrid_query branch from 6d1b3e6 to d21b410 Compare March 13, 2024 05:00
@martin-gaievski martin-gaievski changed the title Adding info about aggregations to Search-Hybrid search section Adding aggregations to Search-Hybrid search section Mar 13, 2024
@martin-gaievski martin-gaievski marked this pull request as ready for review March 13, 2024 05:03
@hdhalter hdhalter added 4 - Doc review PR: Doc review in progress release-notes PR: Include this PR in the automated release notes v2.13.0 labels Mar 15, 2024
Signed-off-by: Fanit Kolchina <[email protected]>
Copy link
Collaborator

@kolchfa-aws kolchfa-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for providing this documentation, @martin-gaievski! The doc review is complete. I'll take the PR from here through editorial review.

@hdhalter hdhalter changed the title Adding aggregations to Search-Hybrid search section Add aggregations to Search-Hybrid search section Mar 18, 2024
Copy link
Collaborator

@natebower natebower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-gaievski @kolchfa-aws Just a few minor changes. Thanks!

_search-plugins/hybrid-search.md Outdated Show resolved Hide resolved

Most aggregations are performed on the subset of documents that is returned by a hybrid query. The only aggregation that operates on all documents is the [`global`]({{site.url}}{{site.baseurl}}/aggregations/bucket/global/) aggregation.

To illustrate how aggregations can be used with hybrid query, first let's create an index. Aggregations are typically used on fields of special types, like `keyword` or `integer`. The following example creates an index with several such fields:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove or replace "let's"?

_search-plugins/hybrid-search.md Outdated Show resolved Hide resolved
kolchfa-aws and others added 2 commits March 21, 2024 11:15
Co-authored-by: Nathan Bower <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
@kolchfa-aws kolchfa-aws merged commit aef0e2a into opensearch-project:main Mar 21, 2024
3 checks passed
CaptainDredge pushed a commit to CaptainDredge/documentation-website that referenced this pull request Mar 22, 2024
…6661)

* Changing hybrid search section, adding info about aggregations

Signed-off-by: Martin Gaievski <[email protected]>

* Doc review

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]>

---------

Signed-off-by: Martin Gaievski <[email protected]>
Signed-off-by: Fanit Kolchina <[email protected]>
Signed-off-by: kolchfa-aws <[email protected]>
Co-authored-by: Fanit Kolchina <[email protected]>
Co-authored-by: kolchfa-aws <[email protected]>
Co-authored-by: Nathan Bower <[email protected]>
@hdhalter hdhalter added 3 - Done Issue is done/complete and removed 4 - Doc review PR: Doc review in progress labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Done Issue is done/complete release-notes PR: Include this PR in the automated release notes v2.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOC] Documentation for adding aggregations support in hybrid query
4 participants