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

Search: optimise results #1030

Open
yndajas opened this issue Nov 25, 2022 · 0 comments
Open

Search: optimise results #1030

yndajas opened this issue Nov 25, 2022 · 0 comments

Comments

@yndajas
Copy link
Member

yndajas commented Nov 25, 2022

Original search PR: #984
Related issue: #1024 (analytics)

Midway through development, it was noted that the relevance sorting of search results may be sub-optimal for some particular searches. For example, searching for "sickness policy", you need to scroll down to the fourth result to find the correct page

We'll need to have a think about/research whether this is a symptom of the search itself or the way things are structured. As mentioned in #1024, we could look to tweak the structure of content for internal SEO, or we could look into how to boost certain results for particular search queries

The search engine, Elasticlunr.js, has a "query-time boosting" feature, which we may be able to tap into to boost (or maybe deboost?) certain terms. For example, if "policy" is combined with another word, we might prioritise the other word since "policy" is likely more generic. I believe the engine already weights words based on how frequently they appear across the entire dataset/corpus, but boosting may be a way of augmenting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant