After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 619873 - search-as-you-type should only match beginnings of words
search-as-you-type should only match beginnings of words
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Contact List
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on: 608166
Blocks:
 
 
Reported: 2010-05-27 20:13 UTC by Jussi Kukkonen
Modified: 2010-06-09 11:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jussi Kukkonen 2010-05-27 20:13:05 UTC
If I type "nick" when focus is in the contact list with the intention of selection "Nick Richards", I actually end up with "Ian Romanick".

The matching should only be done with beginnings of words, I think.
Comment 1 Guillaume Desmottes 2010-05-28 06:55:41 UTC
Marking as a dup of bug #608166 which is about completely redo live search support. I think the branch implements the behaviour you described.

*** This bug has been marked as a duplicate of bug 608166 ***
Comment 2 Felix Kaser 2010-05-28 11:18:02 UTC
no it doesnt...at least not yet! I personally think thats its better to match the needle in the haystack.

On the N900 it searches only from the beginning and I have a friend which is called Marie-Lena but everyone calls her "Lena". Typing "lena" does not match "Marie-Lena", which is not good imho.
Comment 3 Jussi Kukkonen 2010-05-28 12:05:44 UTC
Felix, I tried really hard to think of examples that would break what I suggested: "Marie-Lena" is not one: anything non-alphanumeric should obviously break a word when matching.
Comment 4 Felix Kaser 2010-05-28 12:52:30 UTC
Hmm...what one of my reasons were to do it this way is if someone uses a strange email address which contains some parts of the name but begins with something else. But anyways...thats a very constructed example. If the majority is for your approach, I'm fine with that. But I would like to do it once the live search is merged...

thus I'm reopening the bug...
Comment 5 Xavier Claessens 2010-05-28 12:58:01 UTC
plitting on '-' (and some other chars than space) is an interesting idea, indeed. I don't like searching in any substring of the contact's ID. For example typing "Ja" will match all @jabber.org contacts... that's not useful.

So i'm in favor matching only prefix for each word. Splitting words on space and some other common chars that could be found in names (or in IM id), like '-', '_', '.'
Comment 6 Guillaume Desmottes 2010-05-28 13:23:04 UTC
(In reply to comment #5)
> So i'm in favor matching only prefix for each word. Splitting words on space
> and some other common chars that could be found in names (or in IM id), like
> '-', '_', '.'

++

But do that once the main branch has been merged. :)
Comment 7 Xavier Claessens 2010-06-09 11:48:57 UTC
This is already done.