ratnesh
12 years agoLithium Alumni (Retired)
Search only ideas and not posts using restapi
Hi, I want to search the ideas from Idea Exchange which I have been able to do it BUT the seach api also return the post made on "Change Status" in idea exchange. I am using the following rest...
- 12 years ago
If you add "is_root:true" to your search query, you should be able to just get the root messages (the original idea post) instead of the comments. For example:
http://mycommunity.stage.lithium.com/restapi/vc/boards/id/IDEAExchangeID/search/messages?q=SEARCHTEXT+AND+is_root:true
- 12 years ago
Unfortunately I believe you'll have to include it as part of the q parameter. If you're dealing with an unencoded parameter value and the encoding happens downstream, I'd suggest you try taking out the "+" characters to avoid those being considered part of the query itself. For example: "SEARCHTEXT AND is_root:true"
If that doesn't help, would it be possible for you to share a snippet of what's not working for you?