documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Search API only shows results for Hashtags

Open tibor opened this issue 11 months ago • 3 comments

Steps to reproduce the problem

Using the Search API without Token shows only Hashtags, Statuses and Profiles are empty: https://mas.to/api/v2/search?q=test https://mastodon.social/api/v2/search?q=test https://mstdn.social/api/v2/search?q=test

Expected behaviour

Statuses and Profiles should appear

Actual behaviour

Only Hashtags appear

Detailed description

No response

Mastodon instance

mastodon.social

Mastodon version

No response

Technical details

If this is happening on your own Mastodon server, please fill out those:

  • Ruby version: (from ruby --version, eg. v3.4.1)
  • Node.js version: (from node --version, eg. v20.18.0)

tibor avatar Feb 01 '25 18:02 tibor

This is expected, full text search is not available for unlogged users, only hashtag-based search

renchap avatar Feb 06 '25 23:02 renchap

In my opinion this should then be added to the documentation (https://docs.joinmastodon.org/methods/search/) and/or an error message should be sent back by the API for these fields.

tibor avatar Feb 08 '25 13:02 tibor

Moving to the documentation repository so this can be addressed here.

andypiper avatar Dec 12 '25 13:12 andypiper