Skip to content

[Enhancement] Refactor OpenSearchQueryRequest and OpenSearchScrollRequest so that we pass in includes list from query #1536

Closed

Description

@acarbonetto

Is your feature request related to a problem?

When creating the OpenSearchResponse, we don't have access to the OpenSearchQueryRequest or OpenSearchScrollRequest - which is needed for context. Right now, we are picking out the includes list but this is unavailable for scroll requests (which means _id and other metafields are not output on 2+ pages of pagination requests).

What solution would you like?

  1. a way to serialize the includes list that is send to OpenSearch in the request.
  2. a way to pass the serialized includes list to the OpenSearchResponse so that we aren't sending unnecessary information around.
  3. Maybe refactor OpenSearchQueryRequest or OpenSearchScrollRequest to handle/pass this information for both paged and non-paged requests.

What alternatives have you considered?
Related to changes in #1456

Do you have any additional context?
N/A

Activity

  1. added
    maintenance
    and removed
    enhancement
    on Apr 17, 2023
  2. added 3 commits that reference this issue on Aug 2, 2023
  3. self-assigned this
    on Aug 3, 2023
  4. added 2 commits that reference this issue on Aug 4, 2023
  5. added a commit that references this issue on Aug 9, 2023
  6. added a commit that references this issue on Aug 9, 2023
  7. added a commit that references this issue on Aug 9, 2023
  8. added a commit that references this issue on Aug 10, 2023
  9. added a commit that references this issue on Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

maintenance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions