create account

RE: Tower: A REST API implementation on the top of Hivemind by emrebeyler

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @quochuy/quochuy-re-emrebeyler-re-quochuy-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190117t072520800z

· @emrebeyler ·
Probably in the next couple of weeks. What kind of queries do you use? I am gathering this data to create additional indexes on the database side.
properties (22)
authoremrebeyler
permlinkre-quochuy-quochuy-re-emrebeyler-re-quochuy-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190117t072829233z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2019-01-17 07:28:30
last_update2019-01-17 07:28:30
depth4
children1
last_payout2019-01-24 07:28:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length146
author_reputation448,528,959,341,273
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,488,818
net_rshares0
@quochuy · (edited)
Great!
I use the same asksteem queries as on dtube website. They are still there despite the asksteem API returning an error, so you can see what they are exactly. But to summarise:

- recent dtube posts for an author
- related content, probably dtube posts that are using the same tag as the current post. The way you make sure it’s a dtube content that has a video is by checking that json_metadata contains the ‘video’ property
- searching posts by keywords inside title and body
- searching posts by tag
- searching posts by author
- combine the three above with a filter that look for the ‘video’ property in the json_metadata

I believe asksteem is using Solr or Elastic search and you can enter the lucene query in the URL query string

Posted using [Partiko iOS](https://steemit.com/@partiko-ios)
properties (22)
authorquochuy
permlinkquochuy-re-emrebeyler-re-quochuy-quochuy-re-emrebeyler-re-quochuy-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190117t124558922z
categoryutopian-io
json_metadata{"app":"partiko","client":"ios"}
created2019-01-17 12:46:03
last_update2019-01-17 12:47:54
depth5
children0
last_payout2019-01-24 12:46:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length804
author_reputation758,372,221,814,367
root_title"Tower: A REST API implementation on the top of Hivemind"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id78,498,524
net_rshares0