gleung
11 years agoMentor
API Search
Hi: I am using the restapi/vc/search/messages API to get search results in the community and referring to the docs (http://community.lithium.com/t5/Community-API/bd-p/developers-rest-api?leaf-id=Co...
gleung - Are you trying to replicate the search within the community or is it for some other purpose? I am asking because if that's the case, there might not be all the filters available for you going further. You can still try the API V2 now but that would also require very complex code.
These threads might be of use: http://community.lithium.com/t5/Developers-Discussion/REST-API-Run-a-search-from-a-specific-category/m-p/48665/highlight/true#M1698
if you want to do it inside the code and not using the front end filters, you can use FTL if else, i.e. display only when the <#if category != C3> if there is no direct way in the API for this.
I hope this helps.