Skip to main content

Search

Items tagged with: information



A follow-up post regarding the Mastodon search tips:

If the search options don't work, the reason might be that your Mastodon instance maintainer hasn't implemented Elasticsearch.

Also important: do not use capitals anywhere in the search conditions. E.g.: "From:me" doesn't work.

Further reading:

https://mstdn.social/@DeltaWye/111280982761530295

and

https://fedi.tips/how-do-i-search-for-stuff-on-mastodon/

#mastodon #MastoTips #FediTips #tip #tips #information #knowledge #fediverse


I took some time to work out the exact #formatting that #Elasticsearch demands. If you think this might be useful, go ahead and boost. If you find any errors or would like to suggest additions, please also post a reply!

Hopefully this can help prevent a lot of frustration and trouble people might encounter and give them a better Mastodon experience!

(Updated to Revision 2)

Mastodon Elasticsearch - Essential Search Formatting

From:@joeybohij@spallone.somedomain
Capitalizing the "F" returns posts you made that include @joeybohij (Search doesn't run correctly?)

from:_@joeybohij@spallone.somedomain
Putting a space between the colon and @ returns posts you made that include @joeybohij (Search doesn't run correctly?)

from:@joeybohij@spallone.somedomain
This returns posts from @joeybohij - assuming their posts are searchable
from:@joeybohij@spallone.somedomain apple
This returns posts from @joeybohij - assuming their posts are searchable, containing the word "apple"

from:@joeybohij@spallone.somedomain before:2023-09-01 apple
Elasticsearch uses the following date formatting:
YYYY-MM-DD
This returns posts from @joeybohij - assuming their posts are searchable, containing the word "apple"
", before September 1st, 2023

from:@joeybohij@spallone.somedomain apple before:2023-09-01
This returns posts from anyone before September 1st, 2023, with "apple" in it.

TL;DR in Elasticsearch CAPITALIZATION is significant, SPACING is significant, DATE FORMAT is significant, and ORDER of search elements is significant! (And make sure to hit the blue "see all" once you've searched or only some results will load.)

From @deltawye@mstdn.social - October 23rd, 2023 (Revision 2)