Closed Bug 1040881 Opened 12 years ago Closed 12 years ago

Searching doesn't work on contacts with middle names

Categories

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

defect
Not set
normal

Tracking

(b2g-v2.0 affected)

RESOLVED FIXED
Tracking Status
b2g-v2.0 --- affected

People

(Reporter: khuey, Assigned: hola)

References

Details

(Whiteboard: [2.0-flame-test-run-3])

Attachments

(1 file)

If you have a contact with the name "A B C" and type "A C" the search will fail to find it. Importing contacts from Facebook tends to drag in a fair number middle names.
Does indexedDB support fulltext search?
No it doesn't. Right now the search in contacts is based on DOM, since we don't have all the indexes to search for (org, etc.) and also to perform substring matching The components added to the search string are: givenName familyName tel org email
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-3]
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(ktucker)
Hi Adrián, do you want to take a look at this bug?
Flags: needinfo?(hola)
QA Wanted for branch checks.
QA Whiteboard: [QAnalyst-Triage+]
Keywords: qawanted
QA Contact: jmercado
(In reply to Jason Smith [:jsmith] from comment #4) > QA Wanted for branch checks. This was never implemented.
(In reply to Gregor Wagner [:gwagner] from comment #5) > (In reply to Jason Smith [:jsmith] from comment #4) > > QA Wanted for branch checks. > > This was never implemented. Yes, search in contacts, actually is happening via DOM reg exp matching (yes gods of programming punish us for doing that), since the API couldn't implement all the search combinations we wanted.
Keywords: qawanted
Assignee: nobody → hola
Flags: needinfo?(hola)
Attached file Pull request #22560
I fixed it by splitting the search terms and doing a regexp search for each of them.
Attachment #8468338 - Flags: review?(francisco)
Comment on attachment 8468338 [details] Pull request #22560 I've tried in the phone and works perfectly. Not granting the review since I left a couple of suggestions in the pull request hat will be pretty easy to tackle. Thanks. (BTW, I'll be on PTO till August 14th, if I'm not available you can forward the review to Jose)
Attachment #8468338 - Flags: review?(francisco)
Attachment #8468338 - Flags: review?(jmcf)
Comment on attachment 8468338 [details] Pull request #22560 thanks Adrian.
Attachment #8468338 - Flags: review?(jmcf) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: