You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I’m approaching Confluence Cloud Rest APIs and I cannot understand how the /search API works… As described in the documentation (here) it should return a set of results with the `score` property, but it’s always zero.
I tried to look in the docs for more detailed info, but I wasn’t able to find anything useful.
Thank you in advance.
Hi @Andrea Rinaldi ,
first of all, just a simple question : are u sure that user used for seach API has privileges to retrieve expected results?
Please could you share the URL? I'd like to check the cql in order to verify that it is correct. In particular I'd like to check character encoding (I usually use the following https://www.urlencoder.org/ to check rest API parameters).
Hope this helps,
Hi @Fabio Racobaldo _Herzum_ , thank you for answering.
We are using the ACT_AS_USER scope in our ACE app and we are doing search requests with a bearer token that identifies the current logged user.
Anyway, we receive the pages we are expecting, it doesn't seem a matter of wrong CQL.. The problem is that the returned JSON items (see SearchResult object model in the linked doc) do not contain the 'score' property mentioned in the doc.
We are trying to merge the results of the Confluence Search API with the results we get from other sources.. and the score parameters would be very useful in the normalisation phase. Do you know if there's some particular condition or setting in Confluence that would enable the 'score' property evaluation?