[backend/memory][xs]: change full text query in memory backend to ignore case.
This commit is contained in:
parent
1a8375ff85
commit
0549383073
@ -110,7 +110,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
|
||||
var value = rawdoc[field.id];
|
||||
if (value !== null) { value = value.toString(); }
|
||||
// TODO regexes?
|
||||
foundmatch = foundmatch || (value === term);
|
||||
foundmatch = foundmatch || (value.toLowerCase() === term.toLowerCase());
|
||||
// TODO: early out (once we are true should break to spare unnecessary testing)
|
||||
// if (foundmatch) return true;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user