Merge pull request #1292 from vitorpamplona/search-order

Adds Order of results for NIP-50 Search
This commit is contained in:
hodlbod 2024-06-07 08:55:34 -07:00 committed by GitHub
commit ab6019a704
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
50.md
View File

@ -26,6 +26,8 @@ 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 descending order by quality of search result (as defined by the implementation),
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.