Irrelevant items are shown when searching in System Settings

Bug #1446086 reported by Wenfang Si
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-settings (Ubuntu)
Fix Released
Low
Unassigned
Vivid
New
Undecided
Unassigned

Bug Description

arale device, r170, ubuntu-touch/vivid-proposed

Steps
1. launch System Settings
2. open the search bar
3. input some keywords

Result
There are irrelevant items also returned.
e.g.
input "Sound", shows "Sound", "Accounts"
input "at", shows "Cellular", "Sound", "Language & Text", "Notifications", "Battery", "Brightness", "Time & Date", "Updates"

<https://wiki.ubuntu.com/SystemSettings#Interpreting_search_text>: "Any word in the search string that is followed by a space or punctuation should be treated as a a complete word, while any word that is not should be treated as if it might be either a complete word or the beginning of a word."

Related branches

Revision history for this message
Wenfang Si (wenfang.si) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Settings do matching on the name and keywords, not sure why "sound" is matching the online account, but it's normal that "at" matches things like "updates" which contains the substring ... why do you consider that as a bug?

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Wenfang Si (wenfang.si) wrote :

Hi Sebstien,
Sorry for the confusion. I just listed all items.

Here are items that I thought irrelevant:
for "Sound": "Accounts"
for "at": "Cellular", "Sound", "Language & Text", "Brightness"

Revision history for this message
Alberto Mardegan (mardy) wrote :

Hi Wenfang, could you please open the Account applet and check if any of the existing accounts have a name which contains "sound"? Then also try to click on the "Add account" button and see if you find something matching in the list of the available providers.
Likely you'll find SoundCloud there.

Revision history for this message
Wenfang Si (wenfang.si) wrote :

Hi Alberto,

No sub-items matches "sound" in "Accounts".
And yes there is "SoundCloud" in "Add account" list.

Revision history for this message
Wenfang Si (wenfang.si) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

I didn't look at the online account details, but I guess it pushes its account names as keywords

Revision history for this message
Alberto Mardegan (mardy) wrote :

Yes, we use account names, and also account providers names. So, if you have the Soundcloud account plugin available, it's expected that searching for "sound" will also return the "Accounts" result.

Revision history for this message
Wenfang Si (wenfang.si) wrote :

Hi Alberto
Thank you. In my case it must be matching the SoundCloud provider.
This does explain with arale device -- all the filtered items either match or have sub-item match the keywords "sound"/"at".

While do you know why it does not perform the same with krillin?
-- when searching "sound", only "Sound" is filtered out. Meantime SoundClode is also available under Accounts.

http://people.canonical.com/~wsi/1446086-search_SystemSettings/krillin_Accounts.png
http://people.canonical.com/~wsi/1446086-search_SystemSettings/krillin_search_sound.png

Revision history for this message
Wenfang Si (wenfang.si) wrote :

Hi Alberto,
Agree with you, the behavior to filter out sub-item matchings makes sense.
Marking this as Invalide.

Thanks,
Wenfang

Changed in ubuntu-system-settings (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Actually, Wenfang was right here. It doesn't matter that the word "updates" contains the string "at". What matters is that (1) nobody would ever try to find Updates by typing "at", and (2) there is an easy way to prevent that class of spurious results. We solved this years ago for Ubuntu Software Center. <https://wiki.ubuntu.com/SoftwareCenter#Interpreting_search_text>

Specification updated. <https://wiki.ubuntu.com/SystemSettings?action=diff&rev2=68&rev1=67>

Changed in ubuntu-system-settings (Ubuntu):
status: Invalid → Triaged
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-system-settings - 0.3+15.10.20150527-0ubuntu1

---------------
ubuntu-system-settings (0.3+15.10.20150527-0ubuntu1) wily; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.

  [ Iain Lane ]
  * Improve filtering in main page and timezone filters. (LP: #1454186,
    #1446086)

  [ Ken VanDine ]
  * Ensure dim-timeout is 10 seconds less than activity-timeout (LP:
    #1437510)
  * debian/control: bumped depends on ubuntu-keyboard-data to >=
    0.99.trunk.phablet2+15.04.20150421 to get gsettings schema changes
    (LP: #1454230)
  * expose deviceName to QML

  [ Lukáš Tinkl ]
  * compare the language and kbd layout names in a locale-aware manner

  [ Sebastien Bacher ]
  * Translate push_helper expected strings to avoid failure in non C
    locales (LP: #1456941)
  * [battery] use the correct height value for the first point of the
    graph, that fixes the initial point often starting to high and the
    curve starting with an almost vertical line (LP: #1439122)
  * [language] update auto punctuation description to match the osk
    behaviour (LP: #1385288)
  * [security-privacy] remove obsolete dash search option (LP: #1422700)

  [ jonas-drange ]
  * New icon as per lp:1457424 (LP: #1457424)

 -- CI Train Bot <email address hidden> Wed, 27 May 2015 09:23:37 +0000

Changed in ubuntu-system-settings (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.