Content
@
0 reply
0 recast
0 reaction
Pranav Prakash
@pranav
Hi @rish , How do we be able to search for casts from power users containing a particular string? The real issue is finding out "power users".
1 reply
0 recast
0 reaction
rish
@rish
what is the end use case? is it to get webhook events based on this string or something else?
1 reply
0 recast
0 reaction
Pranav Prakash
@pranav
It's to build a search interface where people can search for arbitrary strings. The results are only shown from casts from power users. I already have a query that can search and order by reactions, but that includes everyone. So trying to filter out "everyone" and keep only "power users"
1 reply
0 recast
0 reaction
rish
@rish
Each user object has a power badge attribute. You can use that to filter maybe?
1 reply
0 recast
0 reaction
Pranav Prakash
@pranav
I don't see it in the schema here.
1 reply
0 recast
0 reaction
rish
@rish
oh you mean on sql, I thought you were referring to APIs. APIs have the power badge attribute in user objects. Working to add it to sql, should be there soon
1 reply
0 recast
1 reaction
Pranav Prakash
@pranav
Yes since I am Implementing a global search Sql seemed the best way to go for it.
0 reply
0 recast
0 reaction