Skip to content

Conversation

@yyfamazon
Copy link

@yyfamazon yyfamazon commented Nov 19, 2025

Description

Convert JSON to CSV for search index tool result

Screenshot 2025-11-19 at 15 00 01

Issues Resolved

List any issues this PR will resolve, e.g. Closes [...].

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.

Comment on lines +294 to +305
hits = search_results['hits']['hits']
if not hits:
return "No documents found in search results"

Choose a reason for hiding this comment

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

what about aggregations queries?

Comment on lines 325 to 329
# Convert complex objects to JSON strings
if isinstance(value, (dict, list)):
row[field] = json.dumps(value)
else:
row[field] = str(value) if value is not None else ''

Choose a reason for hiding this comment

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

do we want to expand nested JSON object?

Signed-off-by: yyfamazon <yyf@amazon.com>
Signed-off-by: yyfamazon <yyf@amazon.com>
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.

2 participants