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

Fix readme not being searched #452

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from

Conversation

rkent
Copy link

@rkent rkent commented Dec 10, 2024

While writing the documentation for search_packages, I noticed that package readme is not actually being searched currently by rosindex, although there is code that purports to do this. I could find no evidence that this is a recent bug, the code in question is 10 years old.

You can demo this by searching for 'slam' in humble using the official index versus a version with this PR included. Without this PR, 17 packages are found. With it, 33. An example package is mrpt_map_server which mentions SLAM only in the readme, so does not appear without this PR.

A downside of this is that it makes the index.REPO.json files 2-3x larger. That means an increase in size from around 6 to around 16 megabytes for some distros. On my home setup (fiber internet 500/500 speed) the existing file downloads async in 169 milliseconds, that could presumably stretch to 500 ms with this change. This is done async as soon as the user gives focus to the search field, so under normal circumstances this is not noticed. I thought about reintroducing shrouding, but I lean against it. But it is an option (either now or later if this PR is accepted as it).

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

Successfully merging this pull request may close these issues.

1 participant