Search in headless mode

Hi! I’m using the latest version of Ghost, running in docker compose. I’m using it headless mode, about to integrate with the content API, and trying to figure out the best way to do search (for tags and for partial text).

There are various old discussions and issues about this, and most are closed/resolved.

The search on the standard mode seems pretty slick, and is all I would need. Is this simply not supported in headless mode, or am I missing something? Thanks in advance!

My guess is the built-in search is selecting everything it might search through the Content API and then filtered with client-side JavaScript.

The dependency on the backend could be removed by publishing the content to search to a JSON file and then searching through that client-side.

You said you wanted to search for partial text, but the built-in search only searches titles.