C
Relevanssi - A Better Search Content

Create custom excerpts that show where the hit was made,

Create custom excerpts that show where the hit was made, with the search terms highlighted.

What it does

Create custom excerpts that show where the hit was made, with the search terms highlighted. It is one of the abilities the Relevanssi - A Better Search plugin exposes, so an AI agent connected to your site can run it for you.

Input schema

FieldTypeRequiredDescription
input string Required What you want this ability to do, in plain language.

Output schema

FieldTypeDescription
result string The result produced by the ability.

Permissions

The agent's WordPress user needs these capabilities. Grant only what's listed here, never a full admin account.

πŸ”’ edit_posts

How an agent calls it

Agents call this ability by name and pass the inputs it needs. A call looks roughly like this:

relevanssi.create-custom-excerpts-that-show-where-t
{
  "ability": "relevanssi.create-custom-excerpts-that-show-where-t",
  "args": { "input": ... }
}

The agent runs the ability, then hands the result back for you to review before anything is published.

Keep exploring

More Relevanssi - A Better Search abilities

All Relevanssi - A Better Search abilities β†’
S
Search results sorted in the order of relevance, not by date
Relevanssi - A Better Search
Search results sorted in the order of relevance, not by date.
F
Find documents matching either just one search term (OR
Relevanssi - A Better Search
Find documents matching either just one search term (OR query) or require all words to appear (AND query).
S
Search for phrases with quotes, for example "search phrase"
Relevanssi - A Better Search
Search for phrases with quotes, for example "search phrase".
S
Search comments, tags, categories and custom fields
Relevanssi - A Better Search
Search comments, tags, categories and custom fields.
R
Restrict searches to categories and tags using a hidden
Relevanssi - A Better Search
Restrict searches to categories and tags using a hidden variable or plugin settings.