Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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


1 answer

0 votes
Brant Schroeder Community Leader Sep 21, 2021

@Daniel Tran 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
Community showcase
Published in Confluence Cloud

🏠 Say hello to the new Confluence Home!

Hi Atlassian Community, My name is DJ Chung, and I’m a Product Manager on the Confluence Cloud team. Today, I’m excited to share a new and improved version of Home. The new Home helps you ...

1,004 views 7 42
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you