Skip to content

How to show full text search blocks? #244

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

Open
ireina7 opened this issue Mar 28, 2025 · 1 comment
Open

How to show full text search blocks? #244

ireina7 opened this issue Mar 28, 2025 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@ireina7
Copy link

ireina7 commented Mar 28, 2025

I add config:

enable_search: true

But it seems that it only shows result of post titles.
Can I list all matched text blocks while searching?

@rochacbruno
Copy link
Owner

The search is powered by Fuse JS

According to the docs:
https://www.fusejs.io/api/options.html#includematches

It is possible to include the matches and add to the search component,

the changes would need to be done in the JS code, for example, adding a custom version of https://github.com/rochacbruno/marmite/blob/main/example/static/search.js in your project.

I am open to have it as an option in marmite if someone wants to contribute

@rochacbruno rochacbruno added the help wanted Extra attention is needed label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants