Display summary of search matches

Using Kirby’s search function, is there a way of displaying a summary of the matched text?

e.g. search for “dogs” and for each result display title and summary

Title of an article about dogs
“… ipsum dolor sit dogs amet, consectetur …”

Article: dogs and cats don’t like each other
“… research shows dogs and cats are not very good friends. Scientists…”

Similar to the search results from the forum. I know the forum search isn’t powered by Kirby, but that’s pretty much the result I’m trying to achieve.

I think this post might be helpful: Search result snippets

1 Like

That’s excellent! Like the author said, it’s quick and dirty but I’ll happily try to improve it! :slight_smile: