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

Add highlight methods to search and search builder #483

Open
wants to merge 4 commits into
base: 0.6
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Member

This will add the core highlight methods for the highlighting search results:

$searchBuilder
    ->addIndex('blog')
    ->addFilter(new Condition\SearchCondition('Test'))
    ->highlight(
        fields: ['title', 'description'],
        preTag: '<mark>',
        postTag: '</mark>',
    )

fixes #343

See #349 for not yet rebased implementations.

@alexander-schranz alexander-schranz changed the title Add highlight methods to search and search builder (#348) Add highlight methods to search and search builder Feb 20, 2025
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.

[Core] Highlight search results
2 participants