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