[AVLE] Multi-Tags Search

in WORLD OF XPILAR4 years ago

I have implemented. multi-tags search for the AVLE dapp.
image.png

I found this post in steemit by @alvinvoo:
https://steemit.com/utopian-io/@alvinvoo/new-project-smults-a-k-a-steem-multi-tag-search

It is a so simple approach which I have not thought about.
In steem apis, there is no such api to search with multiple tags. So I think his approach is elegant.

To simply put this is how I do it:

  1. Get posts by the first tag
  2. Filter posts which have all the search tags

The algorithm is also simple. After fetching posts by the first tag, just check each post if it includes all the search tags.

The above image shows the multi-tags search dialog with the two search tags: wox and art. Here are the result of the search:

image.png

Let's open a post. As expected, it contains both "wox" and "art" in the tag section.
image.png

Others posts also contain the both tags.

image.png

I think this approach is quite elegant with the current APIs since the data fetching is minimal.


Please vote for me as a witness and Resteem this post

Thank you everyone for voting.
https://steemitwallet.com/~witnesses

image.png

@steemcurator01, Thank you for Your Support

Sort:  
 4 years ago 

Upvoted! Thank you for supporting witness @jswit.
Please check my new project, STEEM.NFT. Thank you!
default.jpg

 4 years ago 

Greetings my friend @etainclub

I find interesting and of great value the work you are developing, therefore, I would like to ask you a question, it is a doubt I have or rather a need.

I would like to know, is it possible to create an internal image search tool for Steemit.

Your post is manually rewarded by the
World of Xpilar Community Curation Trail

STEEM AUTO OPERATED AND MAINTAINED BY XPILAR TEAM
https://steemit.com/~witnesses vote xpilar.witness

unique and awesome pictures

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.078
BTC 65300.97
ETH 1723.05
USDT 1.00
SBD 0.42