Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete search? #86

Open
jdberry opened this issue Aug 15, 2019 · 5 comments
Open

Incomplete search? #86

jdberry opened this issue Aug 15, 2019 · 5 comments

Comments

@jdberry
Copy link

jdberry commented Aug 15, 2019

When I search for the port "tag" in all categories (by entering the string "tag" at https://ports.macports.org), the "tag" port is not shown in the results. When I enter the same search-string after clicking in the sysutils category, then the tag port is displayed. Strange. I would expect the tag port to be found in the broader search.

@mojca
Copy link
Member

mojca commented Aug 15, 2019

What I suspect happens is that the search only displays the first N hits in some semi-random order. It doesn't explicitly attempt to check or display the exact hit first, so I assume it just gets (not) listed somewhere beyond the first 50(?) results.

Another problem I discovered with the search is that I can type a longer word, but the last letter I type is not always used or removed (somewhat depending on typing speed).

We should probably do two things. The first one is to special-case and show the exact match as the first hit. The second might be to potentially decrease the number of results on the first page (not sure) and the allow pagination to see the rest. Maybe the ports then need to be in alphabetical order, short of other more clever algorithms.

@jdberry
Copy link
Author

jdberry commented Aug 15, 2019

Yeah, that's my guess too. Random order isn't very useful. Probably all results should be displayed, perhaps paged, in alphabetical order by port name. There might be an argument that any exact matches, or perhaps all prefix-matches, should be sorted out and displayed first, alphabetically. That would be a more complicated, though not too difficult, query.

@cjones051073
Copy link
Member

Just ran into this so wondering if there had been any progress ? FWIW, I very much agree with the proposal to first list exact portname matches, and after that the partial matches, in a well defined (alphabetical) order. Currently, if you search for something that results in a lot of hits, finding what you want is quite awkward.

@mf2k
Copy link

mf2k commented Jan 20, 2020

I agree with the comments above that sorting the results alphabetically would help a lot with this.

@arjunsalyan
Copy link
Member

I am working on a new search backend for the webapp. A demo is available here for feedback: http://macports.silentfox.tech/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants