Case #92737: Integration of search results into external app


Description:


Hi,

 

Is it possible to use REST API (or any other SBS API) to efficiently integrate search results from SBS into external interface? I.e. some SBS API that will accept search criteria (query, sort, contentTypes [documents, blogs, ...], startIndex, numResults) and will return (xml,json,?) hits with all the needed info (like URL link, contentType, Subject, highlighted body fragments, author, date, ...).

 

The main problem with REST Search API (/rpc/rest/searchService/search in search service) is that it returns only list of IDs but not content. Which means I would have to issue a new request for each document to get Subject and body content. On top of this I did not find any API that would return me highlighted content or fragments (for both the Subject and Body). Is there any?

 

I found related ticket  http://www.jivesoftware.com/jivespace/message/173664 but if I read it correctly then the REST Search API is probably not designed for efficient search integration with other search services (external to SBS).

 

SBS Open Search API seems to fit more into this use case as it returns content fragments (but still I am missing highlighting tags like <em> around matching terms). Would you recommend using open search API in this case? Are there any known disadvantages of Open Search API compared to REST Search API?

 

Best regards,

Lukas

Latest Comment: Dec 14, 2010 4:27 PM by Alex Evans

Comments

More Like This