Hello
Just getting started with the content server REST API..
Till what I have explored I can see Two ways to achieve this
To restate, this is a question of whether to use the Search XML API or the newer REST API for search. The use of llisapi versus cs.exe is not relevant.
The XML API is older, more mature, and has more features – although the extra features are minor and may not be important. It also does more legwork to populate “ready to use” URLs for some common actions.
The REST API is newer, and has changed with new capabilities between the various CS 16.x updates. Not quite stable yet. On the other hand, it emits JSON results. We are using this for our search widgets in the Smart UI, but haven’t yet formally released all the documentation. That should come in the next couple of updates.
For the most part, your preference for consuming and working with JSON versus XML results might be the single most important consideration. At this point, they are both production-ready and fully supported.
For completeness – the CWS/SOAP and the Enterprise Library Search APIs are not recommended.
Patrick
From: eLink Entry: Content Server Development Forum [mailto:development@elinkkc.opentext.com]Sent: Thursday, August 31, 2017 9:48 AMTo: eLink Recipient <devnull@elinkkc.opentext.com>Subject: Different ways to Search Content Server 16.x
Different ways to Search Content Server 16.x
Posted by Devineni, Krishna On 08/31/2017 09:41 AM
My goal is to search content server 16.x
1. Using the llisapi.dll (ex-:http://contentServer/otcs/llisapi.dll/api/v2/search?where=110)
2. Using theSearch API (ex-:http://contentserver/otcs/cs.exe?func=search&where1=110)
What is the best way to achieve this..in teams of performance, ease of use or I am missing something. Also what is the difference between the above two approaches?
[To post a comment, use the normal reply function]
Forum:
Content Server Development Forum
Content Server:
Knowledge Center CS16
Different ways to Search Content Server 16.x Posted byDevineni, KrishnaOn 08/31/2017 09:41 AM HelloJust getting started with the content server REST API..My goal is to search content server 16.xTill what I have explored I can see Two ways to achieve this 1. Using the llisapi.dll (ex-: http://contentServer/otcs/llisapi.dll/api/v2/search?where=110) 2. Using the Search API (ex-: http://contentserver/otcs/cs.exe?func=search&where1=110) What is the best way to achieve this..in teams of performance, ease of use or I am missing something. Also what is the difference between the above two approaches?
Thanks Patrick..for the repsonce
Just to make sure when you say "The use of llisapi versus cs.exe is not relevant." Means both are same Right only diffrence is that
CS.exe run as a CGI within the web server and llisapi.dll is an ISAPI filter or there is more to it?
1. Using the llisapi.dll (ex-: http://contentServer/otcs/llisapi.dll/api/v2/search?where=110)
2. Using the Search API (ex-: http://contentserver/otcs/cs.exe?func=search&where1=110)
In terms of thread use or the impact on the server, would you recommand a solution instead of another ? Ex: do the REST API use the Admin Service for executing the search query ? I am a little bit cautious before developping something based on the search API, afraid to "hammer" too much the environnement. Is my worry warranted ?
Internally, these both execute mostly the same code. I’m not aware of any fundamental performance differences between them.
From: eLink Entry: Content Server Development Forum [mailto:development@elinkkc.opentext.com]Sent: Thursday, August 31, 2017 11:24 AMTo: eLink Recipient <devnull@elinkkc.opentext.com>Subject: RE Different ways to Search Content Server 16.x 2
RE Different ways to Search Content Server 16.x 2
Posted by Martin, Jean-Philippe On 08/31/2017 11:23 AM
Topic: