upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

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