diff options
| author | Vitor Pamplona <vitor@vitorpamplona.com> | 2024-06-07 10:47:58 -0400 |
|---|---|---|
| committer | Vitor Pamplona <vitor@vitorpamplona.com> | 2024-06-07 10:47:58 -0400 |
| commit | cfcc2e48cd3555e9e458a32f816e0d1ea4994a40 (patch) | |
| tree | 187005d5f18375e68aef9622586cb1640baceb8c | |
| parent | cf563d71f4bd0e24d3e3b35b552247b7d31b032c (diff) | |
Defines the order of the results for NIP-50
| -rw-r--r-- | 50.md | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -26,6 +26,9 @@ Relays SHOULD interpret the query to the best of their ability and return events | |||
| 26 | Relays SHOULD perform matching against `content` event field, and MAY perform | 26 | Relays SHOULD perform matching against `content` event field, and MAY perform |
| 27 | matching against other fields if that makes sense in the context of a specific kind. | 27 | matching against other fields if that makes sense in the context of a specific kind. |
| 28 | 28 | ||
| 29 | Results SHOULD be returned in the order of their matching score, not by the usual `.created_at`. | ||
| 30 | The `limit` filter SHOULD be applied after sorting by matching score. | ||
| 31 | |||
| 29 | A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore | 32 | A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore |
| 30 | extensions they don't support. | 33 | extensions they don't support. |
| 31 | 34 | ||