Skip to content

Searching by _source on a specific resource type will return matches on all resource types. #4671

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

Closed
epeartree opened this issue Mar 22, 2023 · 0 comments · Fixed by #4673
Closed
Assignees

Comments

@epeartree
Copy link
Collaborator

Description
Searching by the _source parameter on a specific resource will return source matches for all resources.

To Reproduce

  1. Post Patient with: “meta”: { “source”: “source” }
  2. Post Condition with: “meta”: { “source”: “source” }
  3. request: GET localhost:8000/Condition?_source=source

Observed results: Even though we are attempting a GET on Condition resources, we get back both the Condition resource AND the Patient resource.

Expected behavior
For the search to return only Condition resources matching the provided source.

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 a pull request may close this issue.

1 participant