What is Nostr?
Mtg /
npub1zug…dx38
2023-09-20 15:16:15
in reply to nevent1q…nf92

Mtg on Nostr: As far as I know, this kind of advanced filtering isn't currently possible through ...

As far as I know, this kind of advanced filtering isn't currently possible through the relays...
Mainly because they will be kind of expensive for relays to run on their data. AND, because a single relay can't determine this since it doesn't necessarily have the full picture.

So maybe a relay is storing the event & 2 comments on it.
But maybe another relay is storing 4 other comments on this event.

So the client can't query multiple relays and ask them: "Give me the events that has the most comments but take into account the data stored on other relays too"

So the current solutions I can think of:
You either do this on the client side.
Or if you can, you build a middle layer between your client & other relays that can cache this events & do this advanced filtering.


A question btw, how are you filtering for a certain keyword inside the title & that it has media content??
Are you doing that using NIP-50? Or in another way?
Author Public Key
npub1zug85tns97cfxafjpa2rh28d45d6h4txgxt3vr8rxe9czr85j47qntdx38