You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Modified the search method of our opensearch client to pass through an optional excludes param
Modified our search API to set the attachments field to be excluded
The text was updated successfully, but these errors were encountered:
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
attachments
field to be excludedThe text was updated successfully, but these errors were encountered: