meilisearch: Move published date to lower priority #623

Merged
floatingghost merged 1 commit from norm/akkoma:meilisearch-order into develop 2023-08-12 14:36:54 +00:00
Contributor

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 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.

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.
norm added 1 commit 2023-08-11 15:15:30 +00:00
meilisearch: Move published date to lower priority
Some checks are pending
ci/woodpecker/pr/build-amd64 Pipeline is pending
ci/woodpecker/pr/build-arm64 Pipeline is pending
ci/woodpecker/pr/docs Pipeline is pending
ci/woodpecker/pr/test Pipeline is pending
d79c92f9c6
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.

this makes sense, thanks for the explanation

seems okie to me

this makes sense, thanks for the explanation seems okie to me
floatingghost merged commit 0b32beb051 into develop 2023-08-12 14:36:54 +00:00
floatingghost deleted branch meilisearch-order 2023-08-12 14:36:54 +00:00
Sign in to join this conversation.
No description provided.