Defines the order of the results for NIP-50

This commit is contained in:
Vitor Pamplona 2024-06-07 10:47:58 -04:00
parent cf563d71f4
commit cfcc2e48cd

3
50.md
View File

@ -26,6 +26,9 @@ Relays SHOULD interpret the query to the best of their ability and return events
Relays SHOULD perform matching against `content` event field, and MAY perform Relays SHOULD perform matching against `content` event field, and MAY perform
matching against other fields if that makes sense in the context of a specific kind. matching against other fields if that makes sense in the context of a specific kind.
Results SHOULD be returned in the order of their matching score, not by the usual `.created_at`.
The `limit` filter SHOULD be applied after sorting by matching score.
A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore
extensions they don't support. extensions they don't support.