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
Tweaking fuse.js configuration to improve search results #1319
Conversation
Hey @cderv , I finally got around to testing this in the javascript console. I didn't specifically test this version of the code, since it was easy to just set ignoreFieldNorm: true in the browser. It solved the problem we were discussing here: https://community.rstudio.com/t/bookdown-search/131042 If you were to make this change, it would mean that shorter fields wouldn't be scored higher than longer fields. Given that...
I think it makes sense to make this change at least in the dev version so it can receive wider testing. |
I should have mentioned, we'd want to do this in the gitbook version, too, right? I'm not using the bs4_book theme. |
Thanks !
Can we improve this ? |
Sorry that sentence was unclear. What I meant is that in my limited testing I was only able to find it improving things: Exact matches from longer paragraphs were now showing up in search results as expected. |
Context: https://community.rstudio.com/t/bookdown-search/131042/12
ignoreFieldNorm: true
to fuse js