Skip to content

Word-boundary Text Matching  #2841

@tadgh

Description

@tadgh

Description of Enhancement

Currently searches on Observation code:text match only at the beginning of the string, rather than on
words. This task will change the matching behavior of :text for any parameter (not just Observation
code:text) so that will match on word boundaries. Example 1: A search on “weight” should match the
display string “Body weight” or “Weight”. Example 2: A search on “h” should match “Height” but not
“Weight”.

Acceptance Criteria

Example 1: A search on “weight” should match the display string “Body weight” or “Weight”.
Example 2: A search on “h” should match “Height” but not “Weight”.

Solution Design

Change our indexing to tokenize on words, and change :text to compose a prefix search against all tokens

Testing

Enter several Observations with different codes.
Search by code:text= for different words.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions