on 02-07-2015 2:43 PM
what entities does Search api return? How do we display info about the groups listed as search results?
I tested the search api with a query and it returned search result objects but these object only have references to other objects. Our requirement is to display some informative text about the search results to the user and navigate to the object upon user selection of the search result.
The SAP Jam Developer Guide at http://help.sap.com/download/documentation/sapjam/developer/index.html#odata/concepts/SAPJamODataAPI... has a section on the OData Search API. You'll run the search as a service operation getting back a list of SearchResults. One of the relationships you can expand on is the ObjectReference which has title and type and links. The metadata is available at jam4.sapjam.com/api/v1/OData/$metadata
Not all backing entities will have descriptions. The description is filled only when there is a description attached to the search result item. For example, a group or event will have a description attached but an overview page and wiki page will not.
Kyle Patrick for Jam Engineering
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kyle,
Thanks for your reply. If my search resulted in 100 results, Will I have to make 100 calls to JAM to get the description(by fetching the Object references) of all the 100 objects as I don't see any description related to the search result? We want to display search results on Pepsi's portal and based on user selection, navigate to a particular search result.
Thanks,
Satish
Hi Satish,
No need to loop over the results to get the details.
You can use $expand on the ObjectReference and you will additional information added to the search result. An call would look like this:
https://{{server}}.sapjam.com//api/v1/OData/Search?Query='<searchTerm>'&$expand=ObjectReference
You can also $expand multiple relationships: e.g. "$expand=ObjectReference, Group".
Best,
Rüdiger
Can someone kindly reply. We are in the middle of an implementation and working with a customer.
Thanks in advance,
Tony
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.