Scroll Viewport search via Confluence REST API
Hello k15t people,
We are implementing Scroll Viewport templates for our Confluence instance.
We checked your articles on creating search vm templates https://help.k15t.com/scroll-viewport/latest/search-template-recipe-137871070.html and https://help.k15t.com/scroll-viewport/latest/implementing-quick-search-results-125708861.html.
Our use case requires bypassing tre Velocity templating syntax, and opting for directly making calls to the Confluence REST API: https://docs.atlassian.com/ConfluenceServer/rest/6.9.1/#search-search.
The expand query param allows retrieving the whole body of a page in the returned search results. However, we want to display only the equivalent of the DITA shortdesc, so the first couple of sentences that provide a concise abstract of the article.
Our current request in the search query looks like this: expand=version,ancestors,body.export_view
Is there a specific expand property we can request that is more specific than body.export_view?
Many thanks in advance + kindest regards,
marco
-
Hi Marco,
this seems to be a question about the Confluence REST API. I see that there is an 'excerpt' field in the JSON output. Maybe this will work for you? If you have questions about the Confluence REST API, please contact the Atlassian Support Channel.
Thanks and have a nice day.Best,
Steffen
Please sign in to leave a comment.
Comments
2 comments