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

Modify the search response to exclude the attachments from the response #3498

Open
chouinar opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@chouinar
Copy link
Collaborator

Summary

We don't need the attachments in the search results, and parsing the large text responses would be a lot of extra parsing, so we shouldn't have OpenSearch return them.

This can be done by adding _source_excludes=field1,field2 to the query we send to OpenSearch (_search_excludes is also a param that the search client we use takes in).

Acceptance criteria

  1. Modified the search method of our opensearch client to pass through an optional excludes param
  2. Modified our search API to set the attachments field to be excluded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant