[DockerHub] Fix your search engine

2 Likes

WHat should be fixed here?

Ubuntu is a Debian-based Linux distribution and Docker Hub searches in the description too.

I think that’s a good thing. If you mean you would like to have a way to whether you want to search in the description or not, I would like that idea. You could recommend it on GitHub as well

I’m sorry but I’ll give you the benefit of the doubt and assume you’re joking. The search term is “debian”. It makes no sense to display anything else than Debian on the first search result.

I could search for encryption and I wouldn’t want to see only the images that contain the word in their name, but images that are related to encryption somehow. The search engine will not know when you want to search for exact image names or related words.

It is not just about Docker Hub. The following command would give you the same result:

docker search debian

You could also search for “debian” on GitHub. The second result for me was teddysun/shadowsocks_install. “debian” is only in the description of the repository, so this is not a “bug” in Docker Hub. GitHub supports an advanced search with special syntax, but as far as I know, even GitHub doesn’t support searching for a part of a repository name only.
https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax#repository-qualifier

Note: Code search does not currently support regular expressions or partial matching for repository names, so you will have to type the entire repository name (including the user prefix) for the repo: qualifier to work.

Searching only for names would be a bad idea in my opinion, but optionally allowing users to search only in the repository names would be a good one, and one that even GitHub doesn’t support. quay.io is another image registry and it looks like they don’t support it either.

Search for debian and you will get Prometheus because Debian is mentioned in the description.

You’re right that searching for names only is bad.
I’m just saying - because we searched for Debian, we should expect an image with a name that has an exact match with the search term, to be the most relevant search result.
I don’t know how to make this point come across, but I’ll try… I have a wife and she sends me to buy 2kg of chicken breast. If I return with a bucket of KFC and say “it’s better than what you asked for because a) more people buy this than what you asked for, and b) it’s based on 2kg of chicken breast and c) the description said it even contains 2kg of chicken breast”, the bedroom is going to be understandably unlively.

Haha! I was literally complaining to my girlfriend a few hours ago how much I disliked the Docker Hub search. I don’t disagree with the OP, but my biggest complaint is actually the lack of filtering and sorting options.

Sorting options include “Suggested” and “Recently Updated” :frowning: At a minimum I would want to sort by “Most Downloaded” and “Most Liked” (stared). I’ve literally never interacted with a search engine anywhere where “Suggested”, “Best Match”, or similar have given me acceptable results. Personally I would just ditch “Suggested” and make “Most Downloaded” the default.

Filtering options are in better condition that sorting options, but could still use some improvement. I don’t ever want to see a project that hasn’t been touched in a year, so having filter category named “Updated within the last” with the options 1 day, 1 weeek, 1 month, 3 months, 6 months, 1 year, 5 years or something similar would be very welcome.