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

Support a callback function to capture search results. #3103

Open
Mike-Logit opened this issue Aug 6, 2024 · 1 comment
Open

Support a callback function to capture search results. #3103

Mike-Logit opened this issue Aug 6, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Mike-Logit
Copy link

Mike-Logit commented Aug 6, 2024

I can't find a way to add a callback function that gets called with the search results (from flexsearch) so that I can add some analytics/logs etc... about what the user searched for.

I checked the code but the theme config options are very limited, and the search function isn't accessible or open to extension.

I don't think it's supported but it would be great to have if possible. I don't think it would be too difficult to add.

@dimaMachina
Copy link
Collaborator

dimaMachina commented Oct 17, 2024

Hi, do you still need it? Is there an alternative in other search engine like algolia, or orama a with these callbacks functions?

@dimaMachina dimaMachina added the question Further information is requested label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants