akkoma/lib/mix/tasks/pleroma
Norm d79c92f9c6
meilisearch: Move published date to lower priority
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:
https://www.meilisearch.com/docs/learn/core_concepts/relevancy#behavior

Since the `published` attribute is a unix timestamp, the resulting
buckets 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 down
so 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 the `sort`
parameter isn't used in Akkoma searches. Everything else is made to
match more closely to Meilisearch's defaults.
2023-08-11 11:07:14 -04:00
..
ecto Merge branch 'ecto-rollback-in-test-env' into 'develop' 2021-02-26 16:47:53 +00:00
search meilisearch: Move published date to lower priority 2023-08-11 11:07:14 -04:00
activity.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
app.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
benchmark.ex Use finch everywhere (#33) 2022-07-04 16:30:38 +00:00
config.ex argon2 password hashing (#406) 2022-12-30 02:46:58 +00:00
count_statuses.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
database.ex Support elixir1.15 2023-08-03 17:44:09 +01:00
diagnostics.ex Mix format 2023-04-14 17:56:34 +01:00
digest.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
docs.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
ecto.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
email.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
emoji.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
frontend.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
instance.ex instance gen: Reduce permissions of pleroma directories and config files 2023-08-04 14:13:50 -04:00
notification_settings.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
openapi_spec.ex OpenAPI spec task: Load pleroma application to get version info 2021-02-09 22:10:09 +03:00
refresh_counter_cache.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
relay.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
robots_txt.ex Bump Copyright to 2021 2021-01-13 07:49:50 +01:00
search.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00
uploads.ex Documentation updates for stable release (#73) 2022-07-15 12:27:16 +00:00
user.ex giant massive dep upgrade and dialyxir-found error emporium (#371) 2022-12-14 12:38:48 +00:00