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

Pagefind sub-results ranking #992

Open
cgettings opened this issue Mar 11, 2024 · 1 comment
Open

Pagefind sub-results ranking #992

cgettings opened this issue Mar 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@cgettings
Copy link
Contributor

pagefind's default behavior when showing sub-results seems to be: show the first 3 sub-results, implicitly ranked by the order in which they appear on the page.

So, the search term "smoke asthma" returns

image

because of this

image

even though "Mold in homes" has one hit with a score of 39574, and "Secondhand smoke at home" has 3 hits with scores of 69456, 51029, and 51029.

Each result contains all matching sub-results, so we could figure out how to overwrite the displayed sub-results with an arbitrary number sorted by balanced_score.

Would be moot if the pagefind team changes the default behavior, and I might submit an issue over there.

@cgettings cgettings added the enhancement New feature or request label Mar 11, 2024
@mmontesanonyc
Copy link
Contributor

A few other enhancements:

NB: a lot of our site-search terms are for neighborhoods - neighborhood names, including ZIP Codes. Search should absolutely return useful results for neighborhood names, ZIPs, etc.

  • Write readme/documentation covering tags to use, weighting standards, links to useful documentation (eg HX -> weight equivalence)
  • Revise Key Topic title weighting
  • Ensure good data-features weighting
  • Add ZIPs to NR weighting
  • "Get data for TITLE about NEIGHBORHOOD" on data-explorer/single.html or section.html with low weight so that a neighborhood search turns up Data Explorer opportunities.

CC @cgettings

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

No branches or pull requests

2 participants