The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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.

TAGS
AUG Leaders

Atlassian Community Events