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/re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190117t072043851z

· @emrebeyler · (edited)
$0.04
Yes. It's possible. But I limited the options on `posts` and `post_cache` tables because these tables are huge. To make the queries efficient I need to add indexes targeted for them. For example, Tower will support json_metadata.app filters soon.
👍  
properties (23)
authoremrebeyler
permlinkre-quochuy-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190117t072304668z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2019-01-17 07:23:03
last_update2019-01-17 07:23:21
depth2
children3
last_payout2019-01-24 07:23:03
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length246
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,666
net_rshares83,291,759,130
author_curate_reward""
vote details (1)
@quochuy ·
Do you have an idea when such search API will be available? With AskSteem being shutdown, I’m looking for a replacement for my @steemtelly project

Posted using [Partiko iOS](https://steemit.com/@partiko-ios)
properties (22)
authorquochuy
permlinkquochuy-re-emrebeyler-re-quochuy-re-emrebeyler-tower-a-rest-api-implementation-on-the-top-of-hivemind-20190117t072520800z
categoryutopian-io
json_metadata{"app":"partiko","client":"ios"}
created2019-01-17 07:25:21
last_update2019-01-17 07:25:21
depth3
children2
last_payout2019-01-24 07:25:21
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_length208
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,488,728
net_rshares0
@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