[backend/memory][xs]: change full text query in memory backend to ignore case.

This commit is contained in:
Rufus Pollock 2012-06-06 17:20:43 +01:00
parent 1a8375ff85
commit 0549383073

View File

@ -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;
});