Forum Discussion

gleung's avatar
gleung
Mentor
11 years ago

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=Community.search#Community.search.messages)

 

I am trying to do certain filtering from the search results but I am not seeing exact query parameters that will provide me what I need.

 

1. I want to filter out messages from certain category names. For example if my community has 3 categories (C1, C2, C3), can I search using a query that excludes messages within C3, only showing results from C1 and C2.

 

2. The docs aren't completely explicit on which fields to sort through. I am looking to sort by view and sort by most replies of a thread. Is this possible in the search API? 

 

Thanks!

1 Reply