I am looking to use the Confluence API to search for a term or phrase and the results I am getting back are in a very different order than when I perform the same search in the Confluence UI.
I am searching for the phrase and I only want to search pages and blogs
agile scrum team
So I am passing
( text~"agile" OR text~"agile*" OR text~"scrum" OR text~"scrum*" OR text~"teams" OR text~"teams*" ) and type IN (page,blogpost) and space.type!="personal"
But the result set order is extremely different than when I search through the UI.
What can I do to mimic the sort order and relativity rankings that are present in the UI?
Thank you
@Sean Coleman You can order CQL results in ascending or descending order. For more information see https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/#order-by .
Thank you. Is there anything beyond that? Right now the relevance is the issue.
If I search for <string> and I have a page titled <string> with the <string> used through the page it isn't in the first 50 results from the API but in the UI it's the first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.