diff options
| author | hodlbod <jstaab@protonmail.com> | 2024-06-07 08:55:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 08:55:34 -0700 |
| commit | ab6019a704ce4df58c0b33c17ca6f37cdf0f4604 (patch) | |
| tree | 93ffa397611ec81a3088f481368bdbd00fd84433 | |
| parent | cf563d71f4bd0e24d3e3b35b552247b7d31b032c (diff) | |
| parent | 61ed2716a812abda1c46ff59035b69099b7078b3 (diff) | |
Merge pull request #1292 from vitorpamplona/search-order
Adds Order of results for NIP-50 Search
| -rw-r--r-- | 50.md | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -26,6 +26,8 @@ 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 descending order by quality of search result (as defined by the implementation), | ||
| 30 | not by the usual `.created_at`. The `limit` filter SHOULD be applied after sorting by matching score. | ||
| 29 | A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore | 31 | 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. | 32 | extensions they don't support. |
| 31 | 33 | ||