I'm using boss.search
table to extract the data in XML, but I would like to retrieve specific fields.
The standard syntax is:
SELECT * from boss.search WHERE q="stackoverflow" AND ck = 'ConsumerKey' AND secret = 'ConsumerSecret';
which works.
But when I'm trying to select fields like "/title"
or "/results/result/title"
, I've got the syntax error:
Query syntax error(s) [line 1:7 expecting fields_or_star got '/result/title']
What's the correct syntax of retrieving fields (such as title
)?
The REST response looks like:
<results>
<bossresponse>
<web>
<results>
<result>
<date/>
<clickurl>https://example.com/</clickurl>
<url>https://example.com/</url>
<dispurl type="default">https://example.com/</dispurl>
<title type="default">Example</title>
<abstract type="default">Example</abstract>
</result>
<result>