Open cgettings opened 6 months ago
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.
data-explorer/single.html
or section.html
with low weight so that a neighborhood search turns up Data Explorer opportunities.CC @cgettings
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
because of this
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.