Forum Discussion
VikasB
8 years agoBoss
Hi PerBonomi It works fine even with the string having a period(see screenshot).
It seems to get no message when you put the search string "Twitter Starbase 1.0" and it shows the following has evaluated to null when you try to get ${result.id} . So can you please try with the count API to make sure it is fetching something.
<#assign count= rest("2.0","/search?q=" + "SELECT count(*) FROM messages WHERE board.id = 'starkb' AND subject MATCHES 'Twitter Starbase 1.0'"?url).data.count /> ${count}
PerBonomi
8 years agoBoss
<#assign count= rest("2.0","/search?q=" + "SELECT count(*) FROM messages WHERE board.id = 'starkb' AND subject MATCHES 'Twitter Starbase'"?url).data.count /> ${count}
Gives me 1.
<#assign count= rest("2.0","/search?q=" + "SELECT count(*) FROM messages WHERE board.id = 'starkb' AND subject MATCHES 'Twitter Starbase 1.0'"?url).data.count /> ${count}
Gives me 0.
But, the "0" result query in API Browser gives me: