Bug 1198550 - Show exact hits first
Summary: Show exact hits first
Status: NEW
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: BuildService (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Benjamin Weber
QA Contact: Adrian Schröter
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-17 16:23 UTC by macias -
Modified: 2022-09-07 06:15 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description macias - 2022-04-17 16:23:00 UTC
Let's say you are looking for jed editor, so you typed "jed".

https://software.opensuse.org/search?baseproject=ALL&q=jed

Expected result: since "jed" is exact match, the first hit should be jed.

Actual results:
jedit
python-jedi
jedit-javadoc
python38-jedi
python39-jedi
python310-jedi
python-jedihttp
python38-jedihttp
python39-jedihttp
python310-jedihttp
jed
...list goes on...

It is not even sorted.
Comment 1 Andreas Stieger 2022-09-06 17:50:48 UTC
You mean like this?
https://software.opensuse.org/search?baseproject=ALL&q="jed"
Comment 2 Andreas Stieger 2022-09-06 17:51:34 UTC
You mean like this?
https://software.opensuse.org/search?baseproject=ALL&q=%22jed%22
Comment 3 macias - 2022-09-06 19:53:13 UTC
No, you are showing here specific page for single package. I am referring to the list:

https://software.opensuse.org/search?baseproject=ALL&q=jed

and the ordering. I don't know in advance if what I type is perfect match or not, but the system can order the list in such way that perfect hit is the first one. After all system should make things easy for the user, so provide packages more likely user wants.

I would even go further and say then the ordering should be:

1. perfect match
2. infix match
3. others

Each "group" should be sorted alphabetically. So the results from my example would be shown in this order:

jed

jedit
jedit-javadoc

python-jedi
python38-jedi
python39-jedi
python310-jedi
python-jedihttp
python38-jedihttp
python39-jedihttp
python310-jedihttp

(I skipped sorting alphabetically here).
Comment 4 Andreas Stieger 2022-09-06 20:35:38 UTC
(In reply to macias - from comment #3)
> No, you are showing here specific page for single package.

Actually if you checked carefully you'd see it is a 302 redirect.
Beyond that the portal check the mailing list, the portal is unmaintained except keeping it running as is.
Comment 5 macias - 2022-09-07 06:00:06 UTC
> > No, you are showing here specific page for single package.

> Actually if you checked carefully you'd see it is a 302 redirect.

I don't see any relevance. It could be 100 redirects, it does not change the fact the final page is not a list and single package, because you changed your query in advance adding quotation marks.

> Beyond that the portal check the mailing list, the portal is unmaintained 
> except keeping it running as is.

I understand the sentence, I don't understand what checking the mail has to do with sorting order, and for the last remark does it mean no changes are possible at all?