Skip to content

Match at first character > substring #41

@scottmas

Description

@scottmas

Search string: che

[ { string: 'Teachers Credit Union', score: 11, index: 136 },
  { string: 'Teachers Chemical', score: 11, index: 20 }
  { string: 'Chevron Valley CU', score: 11, index: 270 },
]

But Chevron Valley CU should score higher than Teachers Credit Union since Chevron starts with che while Teachers only has a substring che. Additionally, Teachers Chemical score higher since a word inside the string begins with chec (even though it's not the first word inside the string).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions