Hey everyone,
I'm using the Confluence Cloud API to implement a search bar that shows results with the page's title as well as a preview snippet of where that search phrase is found in the content of the page.
The behaviour is similar to how Jira's developer documentation's search works. The API returns a searchRecords array, found within each result is a "content" key which shows the preview snippet for that search phrase in HTML format. Is this possible to do with the Confluence Cloud API or any of Jira's API? and if so where can I find that.
Thanks!
@[deleted] Welcome to the Atlassian Community.
I believe you would just do a CQL search with expanded body content. You would then just need the results yourself to identify and highlight the words.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.