3.3 Database Index Setup

From the Firestore Database, Click on the Indexes tab and click on the Add Index. You have to create four indexes for the database.

  • Enter contents as Collection ID, `content type` into the first field and set Ascending, Enter timestamp in the second field and set Descending and then select Collection as query scope.

  • Enter contents as Collection ID, `content type` into the first field and set Ascending, Enter loves in the second field and set Descending and then select Collection as query scope.

  • Enter contents as Collection ID, category into the first field and set Ascending, Enter timestamp in the second field and set Descending and then select Collection as query scope.

  • Enter contents as Collection ID, category into the first field and set Ascending, Enter timestamp in the second field and set Ascending and then select Collection as query scope.

This may take 3-5 minutes to activate. After completing this, your index page should look like this

Last updated