How to get search result from wiki to our webapp

We are developing a new webapp like a forum for our company network. Webapp have a search tab which provides results from our new forum. Now we are planning to integrate wiki(confluence) search result with our web app search. So, How can we integrate wiki search result with our webapp results. Is there is any plugins or Api for doing this task.

1 answer

1 vote
Davin Studer Community Champion Jul 15, 2014

Check out the REST API. There are methods for hooking into Confluence search.

https://developer.atlassian.com/display/CONFDEV/Confluence+REST+API

Since the documentation is not much descriptive, how we can implement searching a query using REST API..

Davin,

It looks like (at least with Confluence 5.5.2) that the closest API endpoint I could find on the REST documentation page https://docs.atlassian.com/atlassian-confluence/REST/latest/for search usage, "http://example.com/rest/api/content?title=something&type=page", will only return pages with the exact case sensitive title 'something'. This is definitely not useful for API searching from another webapp.

The now Deprecated REST API Prototype does appear to have a search capability (http://example.com/rest/prototype/1/search?query=something&type=page), but since it is a now deprecated API (and only a Prototype to begin with) it probably isn't a solution to use in any production capacity.

I think I may spin this off into a separate question here on Atlassian Answers since I am having this issue as well (I'll link it here if I do).

Davin Studer Community Champion Jul 23, 2014

If you don't already have it you should get the REST API Browser for your Confluence install. If you do a search in the browser for "search" you will see this entry "searchv3/1.0/search". I believe this is what you want.

That will be a great concern.

Davin Studer Community Champion Jul 31, 2014

Has your question been answered?

We looked into the "searchv3/1.0/search" endpoint, but were hesitant to rely on it since it is marked as a 'Private' API.

According to https://developer.atlassian.com/static/connect/docs/scopes/confluence-rest-scopes.html:

As opposed to public APIs, private APIs are not following the principles described in the REST API Policy. While we strive to keep private APIs backward-compatible, we cannot guarantee compatibility. Private APIs can also be replaced by new public APIs and may become deprecated over time.

Davin Studer Community Champion Aug 04, 2014

My uderstanding is that private APIs are simply ones that require authentication, which since it is getting content from your system I would think would be a good thing.

Davin Studer Community Champion Aug 04, 2014

Good to know. I stand corrected. I guess I just never questioned what I thought it meant.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Asked 4 hours ago in Confluence

What are the resources that you use to learn more about Atlassian Products?

I am gathering information about resources available for Atlassian product knowledge transferring for a presentation in our local Atlassian User Group. I want to group them in four categories From ...

35 views 3 3
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you