-
Notifications
You must be signed in to change notification settings - Fork 3
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
Search returns "raw" schemas before other schemas #2086
Comments
This could be solved using the same approach as used here: We'd need to update the code which gets information about the schemas to return an Lines 43 to 52 in f5b0d5f
Probably this would just be based on the module name as I don't think we have anything more structured to use here. Then the code which renders the schemas to Markdown would need to add a metadata header to the page which configures the search boost appropriately: ehrql/ehrql/docs/render_includes/schemas.py Lines 40 to 63 in f5b0d5f
For raw pages I imagine something like this would do the trick, but we'll need to experiment with the boost values a bit: ---
search:
boost: 0.001
--- |
Searching for tables which appear in both "cooked" and "raw" schemas returns the raw schema first, which confuses users.
For example:
Thread where this confusion arose:
https://bennettoxford.slack.com/archives/C04DVD1UQC9/p1709896596557359
The text was updated successfully, but these errors were encountered: