We recently moved to Confluence Cloud from the Server product, and had previously used the `/rest/quicknav/1/search?query=` API endpoint with great success. I recently discovered that this API is deprecated, and would like to move to a supported endpoint. However, the APIs I keep seeing, `/rest/api/search` and `/rest/api/content/search` seem to provide extremely inferior results as compared to the quicknav version.
For example, with the quicknav API, `query=upgrade+account` seems to returns results where 'Upgrade Account' (or either of the two words separately) appears in the title ranked higher than where it's in the body (ideal!). However, the CQL version "(text~"upgrade account") returns results in an order I can't quite figure out - far inferior to the quicknav API.
Now maybe I'm not doing the CQL properly, or maybe I'm misunderstanding the new API's (any guidance is appreciated!), but I want an API that closely resembles the results returned by Confluences own web search results for a given search term. I found `/explain.action?queryString=upgrade+account`, for example, which does seem a step in the right direction, but does not provide URL's or machine readable formats as far as I can tell.
Any assistance finding a usable search API for confluence cloud (preferably one that is supported) which returns results in the order that confluences own website returns would be very appreciated!
Hello @William Schneider
Although I can't give a 100% reliable answer, I think you're going to be out of luck. With the old Confluence Server, those quicknav APIs were a backend into the old Beanable gadgets. When those gadgets were deprecated, so was that degree of functionality. Either an equivalent REST API call has been developed or it wasn't. The same with the capabilities of CQL.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.