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).
Search string:
cheBut
Chevron Valley CUshould score higher thanTeachers Credit UnionsinceChevronstarts withchewhileTeachersonly has a substringche. Additionally,Teachers Chemicalscore higher since a word inside the string begins withchec(even though it's not the first word inside the string).