Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get search result from wiki to our webapp

Anish July 15, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 15, 2014

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

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

Anish July 17, 2014

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

Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 20, 2014
Billy Schneider July 23, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 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.

Anish July 24, 2014

That will be a great concern.

Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2014

Has your question been answered?

Billy Schneider August 4, 2014

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

Billy Schneider August 4, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 4, 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
TAGS
AUG Leaders

Atlassian Community Events