Mastodon: Enabling full-text search #180

Open
opened 2023-12-07 12:18:58 +00:00 by benjaoming · 2 comments
Owner

Motivation:

As the Fediverse is growing, the demands for features of Mastodon are moving from basic to more advanced. The feature of full-text search enables searching across the user's own post and more:

Mastodon’s full-text search allows logged in users to find results from:

  • public statuses from account that opted into appearing in search results
  • their own statuses
  • their mentions
  • their favourites
  • their bookmarks
  • accounts (display name, usernames and bios)

It deliberately does not allow searching for arbitrary strings in the entire database.

I'm currently stuck once in a while because I cannot re-find my OWN old posts, simply because it's too time-consuming to scroll back in time to find them.

It seems that we would have to run ElasticSearch which sits on top of a Java stack... which makes it sadly large, over 500 MB.

Technical implementation:
https://docs.joinmastodon.org/admin/elasticsearch/

Motivation: As the Fediverse is growing, the demands for features of Mastodon are moving from basic to more advanced. The feature of full-text search enables searching across the user's own post and more: > Mastodon’s full-text search allows logged in users to find results from: > > * public statuses from account that opted into appearing in search results > * their own statuses > * their mentions > * their favourites > * their bookmarks > * accounts (display name, usernames and bios) > > It deliberately does not allow searching for arbitrary strings in the entire database. I'm currently stuck once in a while because I cannot re-find my OWN old posts, simply because it's too time-consuming to scroll back in time to find them. It seems that we would have to run ElasticSearch which sits on top of a Java stack... which makes it sadly large, over 500 MB. Technical implementation: https://docs.joinmastodon.org/admin/elasticsearch/
samsapti added the
Existing Service
label 2023-12-12 18:57:06 +00:00
Owner

Would it be possible to use OpenSearch? :)

Would it be possible to use OpenSearch? :)
Author
Owner

Oh yes!!

Mastodon is tested with Elasticsearch version 7. It should support OpenSearch, as well as Elasticsearch versions 6 and 8, but those setups are not officially supported.

Oh yes!! > Mastodon is tested with Elasticsearch version 7. It should support OpenSearch, as well as Elasticsearch versions 6 and 8, but those setups are not officially supported.
valberg added this to the Devops work project 2024-02-09 07:52:10 +00:00
Sign in to join this conversation.
No description provided.