Skip to content

Conversation

LilyCaroline17
Copy link
Contributor

@LilyCaroline17 LilyCaroline17 commented Sep 23, 2025

Description

This PR addresses some bugs that we're having with how the source field is stored in the local index. The source field can be really long and/or really nested. The solution is to store the source field as a string within the local index so no exceptions related to field depth or number of fields is triggered.

Issues Resolved

Closes [https://github.com//issues/411]
Dashboards PR to handle source field change: opensearch-project/query-insights-dashboards#357

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

Check that Local index properly created:

Screenshot 2025-09-29 at 11 32 01 AM

Scrolling down we can see that source is in properties in the local index.

Screenshot 2025-09-29 at 11 39 43 AM

@dzane17
Copy link
Member

dzane17 commented Sep 23, 2025

Does this actually change the top_queries index mapping for source field? I though we would need to set it explicitly in https://github.com/opensearch-project/query-insights/blob/main/src/main/resources/mappings/top-queries-record.json

@LilyCaroline17 LilyCaroline17 force-pushed the optimizeExporterQueryStorage branch from 241dd3e to 85c9170 Compare September 23, 2025 18:56
@dzane17 dzane17 added the v3.3.0 Issues targeting release v3.3.0 label Sep 23, 2025
@LilyCaroline17 LilyCaroline17 force-pushed the optimizeExporterQueryStorage branch 3 times, most recently from 00fa3ca to 3a576e5 Compare September 24, 2025 22:59
@LilyCaroline17 LilyCaroline17 force-pushed the optimizeExporterQueryStorage branch 5 times, most recently from 1c6e746 to c736543 Compare September 25, 2025 21:40
…ndex

Signed-off-by: Emily Guo <35637792+LilyCaroline17@users.noreply.github.com>
@LilyCaroline17 LilyCaroline17 force-pushed the optimizeExporterQueryStorage branch from c736543 to d8d9eff Compare September 26, 2025 22:40
@ansjcy ansjcy removed the v3.3.0 Issues targeting release v3.3.0 label Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants