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: add exact-match option #770

Open
postb99 opened this issue Feb 9, 2024 · 2 comments
Open

search: add exact-match option #770

postb99 opened this issue Feb 9, 2024 · 2 comments
Labels
feature New feature or request

Comments

@postb99
Copy link

postb99 commented Feb 9, 2024

Hello,

I just activated the dedicated search page (https://mcshelby.github.io/hugo-theme-relearn/basics/customization/#activate-dedicated-search-page) today and found it fun.

I'd like to add an option to inject number of typos to 0 into \static\js\search.js so that I could add a link from one page to /search.html?search-by=some&exact-match and the results page would only contain exact matches on search term. This way this does not seem complicated.

When reusing the just opened search page the exact-match parameter, when present, should be interpreted by page. This would give the best user experience. I add a link to search page from my site menu too.

@postb99
Copy link
Author

postb99 commented Feb 9, 2024

Mmh, Searching for "pic-vert" gives results for "vert" only, this wasn't expected, the dash here is not a word separator but a real part of the whole word to search for. Maybe a French specificity.

@McShelby McShelby added the feature New feature or request label Feb 9, 2024
@McShelby
Copy link
Owner

McShelby commented Feb 9, 2024

Thanks for the input. I will consider this when starting on #407 #490

@McShelby McShelby changed the title Search: add exact-match option search: add exact-match option Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants