Skip to content

Conversation

@batonac
Copy link
Contributor

@batonac batonac commented Jan 29, 2026

closes #4

Tested in production and can be seen live here https://nordenmfg.com/?s=norden


Note

Medium Risk
Changes excerpt generation logic and global $post handling for REST query responses, which can affect search result formatting/highlighting and content returned by the API.

Overview
Search queries using Relevanssi now return the plugin-generated excerpt (including highlighting) through the query REST API’s dynamic postexcerpt field instead of always regenerating/stripping excerpts.

To preserve Relevanssi data, process_specific_dynamics() accepts an optional post object and callers pass the WP_Query post through; excerpt output now conditionally returns raw highlighted HTML (no character limit) or a tag-stripped truncated version (with character limit).

Written by Cursor Bugbot for commit bbd8f09. This will update automatically on new commits. Configure here.

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.

feat: Relevanissi search excerpts

1 participant