Do Indexes Sync to local SDKS?

I’m using Capella with Sync Gateway. I have a Mac app that uses the Couchbase Swift SDK.

If I define some indexes on the Capella backend (using the AI assistant), will those sync down to the local databases on-device? If so, can I add more indexes later (after the local database is populated), or do I need to set up all the indexes I want in advance, before data begins hitting the database?

If I use the Swift SDK APIs to add indexes to the local database, will those sync to the cloud and thus to all other users?

I see some conflicting information in other posts and the docs aren’t super clear about how indexes interact with Sync Gateway.

No they are two different database.

So a reporting index for back end is probably not that useful for a table view index to show what jobs need to be done today on the device.

I see. Is there any advantage to setting up indexes on the server, then, if all of my queries/updates go through the SDK?

It seems like local indexes would be the correct approach and I’m not sure duplicating them on the server carries any advantage if the only thing that interacts directly with that database is sync gateway.