upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhodlbod <jstaab@protonmail.com>2024-06-07 08:55:34 -0700
committerGitHub <noreply@github.com>2024-06-07 08:55:34 -0700
commitab6019a704ce4df58c0b33c17ca6f37cdf0f4604 (patch)
tree93ffa397611ec81a3088f481368bdbd00fd84433
parentcf563d71f4bd0e24d3e3b35b552247b7d31b032c (diff)
parent61ed2716a812abda1c46ff59035b69099b7078b3 (diff)
Merge pull request #1292 from vitorpamplona/search-order
Adds Order of results for NIP-50 Search
-rw-r--r--50.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/50.md b/50.md
index a6e02be..2a31cb1 100644
--- a/50.md
+++ b/50.md
@@ -26,6 +26,8 @@ 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 descending order by quality of search result (as defined by the implementation),
30not by the usual `.created_at`. The `limit` filter SHOULD be applied after sorting by matching score.
29A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore 31A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore
30extensions they don't support. 32extensions they don't support.
31 33