Would it be possible to add sort_type=score to /api/posts/search.
This can be supported only when a subreddit or author filter
is present, and NOT supported for global/unfiltered queries.
pullpush search already does this - https://search.pullpush.io/ (although it has data only till May, 2025)
I assume it would need (subreddit, score) / (author, score) indexes
to avoid the full-sort timeout case, so scoping it should keep the cost down.
Workaround I'm using currently: I fetch with a filter + fields=...,score and sort client-side.
Would it be possible to add
sort_type=scoreto/api/posts/search.This can be supported only when a
subredditorauthorfilteris present, and NOT supported for global/unfiltered queries.
pullpush search already does this - https://search.pullpush.io/ (although it has data only till May, 2025)
I assume it would need
(subreddit, score)/(author, score)indexesto avoid the full-sort timeout case, so scoping it should keep the cost down.
Workaround I'm using currently: I fetch with a filter +
fields=...,scoreand sort client-side.