Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Does the API provide search preview similar to Jira's documentation search (see screenshots)

Deleted user April 19, 2021

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.

Screen Shot 2021-04-19 at 2.08.29 PM.pngScreen Shot 2021-04-19 at 2.08.48 PM.png

Thanks!

1 answer

0 votes
Brant Schroeder
Community Champion
September 21, 2021

@[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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events