Forum Discussion
PaoloT
10 years agoLithium 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
- dustin10 years agoExpertThanks. 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!
Related Content
- 10 months ago
- 2 years ago
- 4 years ago