meilisearch: Move published date to lower priority #623
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#623
Loading…
Reference in a new issue
No description provided.
Delete branch "norm/akkoma:meilisearch-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently, Akkoma sorts by published date first before everything else.
This however makes search results pretty bad since Meilisearch uses a
bucket sort algorithm in order of the ranking rules specified.
Since the
published
attribute is a unix timestamp, the resultingbuckets are pretty small so the other rules essentially have little to
no effect on the rankings of search results.
This fixes that issue by moving the
published:desc
rule further downso it still sorts by date, but only after considering everything else.
AFAIK attribute and sort doesn't really affect results for Akkoma since
the only attribute considered is the
content
attribute and thesort
parameter isn't used in Akkoma searches. Everything else is made to
match more closely to Meilisearch's defaults.
this makes sense, thanks for the explanation
seems okie to me