mitodl / ocw-hugo-themes

A Hugo theme for building OCW websites
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

adjust fuse threshold in offline search to better filter out irrelevant results #1183

Closed gumaerc closed 1 year ago

gumaerc commented 1 year ago

What are the relevant tickets?

Closes https://github.com/mitodl/ocw-hugo-themes/issues/1182

Description (What does it do?)

This PR simply adjusts the threshold value in the FuseJS configuration for offline search in www-offline to 0.2 from 0.4. After some testing, this seems to be a good place to set it in order to filter out irrelevant results.

Screenshots (if appropriate):

image

How can this be tested?

Follow the same instructions as https://github.com/mitodl/ocw-hugo-themes/pull/1175, but pay extra attention to the results and verify that irrelevant results have been minimized

github-actions[bot] commented 1 year ago

Netlify Deployments:
www: https://ocw-hugo-themes-www-pr-1183--ocw-next.netlify.app/
Course v2: https://ocw-hugo-themes-course-v2-pr-1183--ocw-next.netlify.app/

gumaerc commented 1 year ago

@ChristopherChudzicki Whoops, I missed that part but that makes sense. It should be all set now.