Configure data synchronization between your Parse Server/mongoDB and the search engine.

This document is only useful for deployments where the cloud search server is used in conjunction with a mongodb database. If using the Cloud search server as a standalone database, read the document on Insert, Updates and Deletes on how to perform CUD against the search engine.

After a successful deployment of the search server, the next step is to populate it with data from your database. Navigate to the Task Manager, find your instance listed and click on DB Actions > Data Sychronization.

Deploy Cloud Search

Syncing between a NodeChef hosted database and the cloud search server

1. On the data synchronization panel. Make sure the NodeChef hosted database is selected which is the default.

2. Select the App from which you want to sync the data from using the App database select drop down.

3. Check or uncheck the sync all collections if you intend to copy your entire database over. Note, you are not required to do this. In most cases, you have specific classes you want to index and also query. You can always add and remove classes on demand to save space.

4. Use the collections to sync drop down to select the collection/class you want to sync with the search database.

5. Once you click the Add Sync Job, the table on the data synchronization panel should be updated with the Job, you can always view the status of the sync from the table.

Syncing between a self hosted database and the cloud search server

1. On the data synchronization panel, check self hosted database under Source database location

2. Under database connection string, enter the connection string to your mongoDB database. The connection string to your local database is also required for the syncing to happen. If your database is hosted at MLAB, follow the below document on how to access your OPLOG to retrieve the connection string.

3. Check or uncheck the sync all collections if you intend to copy your entire database over. Note, you are not required to do this. In most cases, you have specific classes you want to index and also query. You can always add and remove classes on demand to save space.

4. Use the collections to sync drop down to select the collection/class you want to sync with the search database.

5. Once you click the Add Sync Job, the table on the data synchronization panel should be updated with the Job, you can always view the status of the sync from the table.