Skip to content

Conversation

LDrago27
Copy link
Collaborator

@LDrago27 LDrago27 commented Sep 26, 2025

Description

This PR aims at introducing Query Snippet Suggestions to the Autocomplete Service for Explore.
We would like the augment autocomplete suggestions for users based on the past queries of users stored as Saved Searches, Recent Queries and Saved Queries.

Architecture:
image

Flow Diagram
image

Issues Resolved

Screenshot

Meeting.Recording.-.Sahoo.Suchit.Instant.Meeting.30.mp4

Testing the changes

Changelog

  • feat: Add Query Snippet Suggestions to Autocomplete

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

opensearch-changeset-bot bot added a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Sep 26, 2025
Copy link

codecov bot commented Sep 26, 2025

Codecov Report

❌ Patch coverage is 96.96970% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.29%. Comparing base (dd1f5ae) to head (55a8f6a).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
...ata/public/antlr/opensearch_ppl/code_completion.ts 88.88% 0 Missing and 1 partial ⚠️
src/plugins/data/public/plugin.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10583      +/-   ##
==========================================
+ Coverage   60.19%   60.29%   +0.09%     
==========================================
  Files        4300     4387      +87     
  Lines      115053   116818    +1765     
  Branches    18680    19016     +336     
==========================================
+ Hits        69259    70432    +1173     
- Misses      41049    41544     +495     
- Partials     4745     4842      +97     
Flag Coverage Δ
Linux_1 26.65% <19.69%> (-0.01%) ⬇️
Linux_2 38.83% <ø> (+<0.01%) ⬆️
Linux_3 38.51% <96.96%> (?)
Linux_4 32.59% <19.69%> (-0.01%) ⬇️
Windows_1 26.67% <19.69%> (-0.01%) ⬇️
Windows_2 38.80% <ø> (+<0.01%) ⬆️
Windows_3 38.52% <96.96%> (+0.69%) ⬆️
Windows_4 32.59% <19.69%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

LDrago27 pushed a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Sep 26, 2025
@LDrago27 LDrago27 force-pushed the querySnippet branch 2 times, most recently from 3dda40a to 3ad0758 Compare September 26, 2025 23:31
opensearch-changeset-bot bot added a commit to LDrago27/OpenSearch-Dashboards that referenced this pull request Sep 26, 2025
Signed-off-by: Suchit Sahoo <suchsah@amazon.com>
Signed-off-by: Suchit Sahoo <suchsah@amazon.com>
@angle943 angle943 added the OSD Changes being merged by the OSD team label Sep 30, 2025
@LDrago27 LDrago27 merged commit 24d5b76 into opensearch-project:main Oct 1, 2025
225 of 234 checks passed
@LDrago27 LDrago27 added the v3.3.0 Issues targeting release v3.3.0 label Oct 1, 2025
yanatha99 pushed a commit to yanatha99/OpenSearch-Dashboards that referenced this pull request Oct 2, 2025
* Add Query Snippet Suggestions

Signed-off-by: Suchit Sahoo <suchsah@amazon.com>

* Fix Cypress Tests

Signed-off-by: Suchit Sahoo <suchsah@amazon.com>

---------

Signed-off-by: Suchit Sahoo <suchsah@amazon.com>
Signed-off-by: Nathan Yang <yanatha@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distinguished-contributor OSD Changes being merged by the OSD team v3.3.0 Issues targeting release v3.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants