Confluence Search API (/wiki/rest/api/search) Not Returning Accurate Results Compared to UI Search

Himanshu Ganglani
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2024

Problem Statement: 
We are using the Confluence Cloud API for advanced search with CQL, but we are experiencing discrepancies between the search results from the Confluence UI and the API. We are using following CQL query

API doc: 
https://developer.atlassian.com/server/confluence/advanced-searching-using-cql/ 

CQL
:  title~"custom"++OR+title~"applications"


In the UI, the results differ significantly from those returned by the API.

Expected Behavior:

The API search should return the same results as the UI search when using equivalent search criteria.

Actual Behavior:

The API search returns no results, while the UI search successfully finds the expected pages.

Needs Investigation ?

  1. Are there any differences in how the API and UI interpret CQL queries?
  2. Could there be permission issues that affect API searches differently from UI searches?
  3. Are there any known limitations or bugs with the API search functionality?
  4. How can we debug the API request to understand why it's not returning results?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events