Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

fix: token search params were matching additional documents #65

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

carvantes
Copy link
Contributor

Issue #, if available:
Fix awslabs/fhir-works-on-aws-deployment#301

Description of changes:

Turns out that the identifier param was resulting in text search queries instead of exact text matching.
e.g. [email protected] was analyzed into words before searching: testuser0,gmail.com. This ended up matching unwanted records with a gmail.com address.

Always using the .value.keyword field fixes the issue

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@rsmayda rsmayda left a comment

Choose a reason for hiding this comment

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

Could we add an integ test for this use case?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not able to search resource identifier exactly.
2 participants