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?
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?