Closed Bug 874456 Opened 13 years ago Closed 13 years ago

[SMS][MMS] search contact returning invalid results, per mozContacts "contains" update

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 874501

People

(Reporter: rwaldron, Assigned: rwaldron)

References

Details

mozContacts.find({ filterOp: "contains", ... }) has been fixed to be "contains", where it was previously "startsWith". This means that the Contacts.findBy(...) implementation needs to be updated to filter matches on all terms
Ideally a "startsWith"
Summary: [SMS][MMS] search contact returning invalid results, pre mozContacts "contains" update → [SMS][MMS] search contact returning invalid results, per mozContacts "contains" update
Sorry about that... Ideally a "startsWith" filterOp would be implemented as part of the platform and this could be closed with a simple change to the filterOp from "contains" to "startsWith"
Further investigation has revealed that it was the inclusion of the "tel" field in our searches, see test case and results https://gist.github.com/rwldrn/5621143
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.