Any ideas for implementing client side search index of Monorepo sites

I’m structuring my sites in monorepo way.

common/        -- the common module and configurations used by sites.
site1/              -- https://site1.example.com/
site2/              -- https://site2.example.com/
...

Any ideas to generate search index of content from multiple sites, such as site1 and site2.
And navigate to the corresponding site when clicking the search result.

Not sure if it’s possible :confused:

Pagefind is supposed to have a feature that can connect the indexes of multiple sites, but I haven’t tested it personally. See Searching multiple sites | Pagefind

1 Like