Update client side lucene searching to treat string startsWith matches as case-insensitive

This commit is contained in:
Andrew Kingston 2021-12-17 10:00:46 +00:00
parent 66d9dc9b1e
commit c6792f9903
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ export const luceneQuery = (docs, query) => {
// Process a string match (fails if the value does not start with the string)
const stringMatch = match("string", (key, value, doc) => {
return !doc[key] || !doc[key].startsWith(value)
return !doc[key] || !doc[key].toLowerCase().startsWith(value?.toLowerCase())
})
// Process a fuzzy match (treat the same as starts with when running locally)