Forum Discussion
PaoloT
Lithium Alumni (Retired)
Hi dustin
have you tried retrieving the weighted sum directly
SELECT kudos.sum(weight) FROM messages WHERE message.id = '100'
So the freemarker would be
<#assign response = rest("2.0","/search?q=" + "SELECT kudos.sum(weight) FROM messages WHERE id = '100'"?url).data.items /> ${response[0].kudos.sum.weight}
Hope it helps
dustin
10 years agoExpert
Thanks. Message kudos were not being returned with the SELECT * query for message data. Only the kudos query is returned. Making this request as a separate query worked.
Thanks!
Thanks!
Related Content
- 11 months ago
- 2 years ago
- 4 years ago