Searching ignores less than 3 chars words

Bug #1724489 reported by Will Cooke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Triaged
Low
Unassigned

Bug Description

This seems to be related to the key being searched in G-S.

There is a snap called "oh my giraffe". When you click on the snap to show the details page the two titles at the top of the screen show "oh my giraffe".

However, this only shows up in the results when you search for "ohmygiraffe" or "oh". Searching for "oh my" (note the space) returns zero results.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

The command line finds using these terms:
$ snap find 'oh my'
Name Version Developer Notes Summary
ohmygiraffe 1.1.0a popey - oh my giraffe

The weird thing is gnome-software should be sending the same thing...

Note that searching for "oh" doesn't work in GNOME Software - it doesn't search until you type three characters.

Changed in gnome-software (Ubuntu):
status: New → Triaged
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Ah, seems to be a bug(?) in GNOME Software - it's only actually throwing away any search word less that 3 characters. So the search "oh my" is rejected because none of the words are long enough. "oh my gir" would just search with "gir".

I would have thought having a total number of characters more than three should be sufficient.

Note the reason for the limitation is for the appstream search functionality (too many matches with a small number of characters).

Changed in gnome-software (Ubuntu):
importance: Undecided → Low
summary: - Searching for "oh my" returns zero results but "oh" does
+ Searching ignores less than 2 chars words
summary: - Searching ignores less than 2 chars words
+ Searching ignores less than 3 chars words
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.