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

[5.x] Fix search results missing search_snippets #11450

Merged
merged 3 commits into from
Feb 17, 2025

Conversation

ivang76
Copy link
Contributor

@ivang76 ivang76 commented Feb 13, 2025

As written in the issue #11398, there are problem with the search_snippets when two or more words are searched.
The search_snippets array is populated only when the item found contains both words (even if they aren't on the same line). However, if the search result contains only one of the searched words, the search_snippets array remains empty.
This happens using the the native local driver, not algolia.

Fixes #11398.

@ivang76 ivang76 changed the title Fix issue #11398: Search results missing search_snippets [5.x] Fix issue #11398: Search results missing search_snippets Feb 13, 2025
@duncanmcclean duncanmcclean changed the title [5.x] Fix issue #11398: Search results missing search_snippets [5.x] Fix search results missing search_snippets Feb 13, 2025
@jasonvarga jasonvarga merged commit c66f9f7 into statamic:5.x Feb 17, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search results missing "search_snippets"
2 participants