Store search doesn't find all matching snaps

Bug #1672738 reported by Pat McGowan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapweb
Fix Committed
High
Alexandre Abreu

Bug Description

The results do not match the output from snap find, for example compare a search for hello to "snap find hello". Same with "world"

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Thank you,

this is addressed by this PR

https://github.com/snapcore/snapweb/pull/198

Changed in snapweb:
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

This is still not nearly correct, its just finding names that match starting at the beginning.
We need to search the complete snap names and description, whatever metadata snap find searches. Why not just copy the snap find logic.

Search for "web" as an example, snapweb gets 1 match, find gets 20.

Also is it intended that when there are multiple results the first result is displayed in a different format than other results? i.e. try hello

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

This PR fixes a few remaining issues:

https://github.com/snapcore/snapweb/pull/207

- search the complete snap meta info fields instead of just the name,
- remove the search snap match banner,
- make sure that snaps' order is preserved and not sorted by name in the result page,

Changed in snapweb:
status: In Progress → Fix Committed
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.