Content Server Rest API (2.0.0) Add Category attibutes to search results
I am using the Rest API (2.0.0) to search for nodes in Content Server using the endpoint /v2/search.
I got the search working using the where statement to search for a specific value in a category attribute.
where = OTSubType:144 AND OTDCategory:7941 AND Attr_7941_7:000000019
The default response doesn't contain any information (attributes) regarding categories related to the node. Is it possible to return the atrribute values of the categories in the response? Perhaps using the select statement and does anyone have an example.
Any help is very much appreciated.
Comments
-
you can use the SELECT clause in https://developer.opentext.com/apis/14ba85a7-4693-48d3-8c93-9214c663edd2/d7540c64-7da2-4554-9966-069c56a9341d/e663df89-9b7c-4e5d-9d53-7c7d3dc8bfc7#operation/GetRegionsInfo2 to list the regions to return.
"List of regions to return, e.g. { 'OTName','OTFileSize', ... } Adding a value in the above list will add a 'regions' section in the return response. NOTE: The response structure under 'regions' will change depending on the regions used in the query. When not specified the list of regions returned will be those defined in the template or query that was used to run the query. If no template or query is specified, the user's default template is used."
If you want to manage it you can specify TEMPLATE_ID and reference a search template instead.
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 184 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories