Firestore Database Indexing

15. Firestore Database Indexing

QuickList‘s queries (search, category filtering, sorting) require composite Firestore indexes. Deploy them from the provided firestore.indexes.json:

15.1. Install Node.js (if not already installed) and the Firebase CLI:

npm install -g firebase-tools

15.2. Unzip the provided “Firebase Indexing” package and open a PowerShell/terminal in that folder.

15.3. Log in to Firebase:

firebase login

15.4. Initialize Firestore configuration:

firebase init

Choose Firestore: Configure security rules and index files, select Use an existing project, and pick your QuickList project. Accept the default file names (firestore.rules, firestore.indexes.json).

Please Note:

Use the arrow keys to navigate and the space bar to select options in the CLI prompts.

15.5. Copy the provided index definitions into firestore.indexes.json, then deploy:

firebase deploy --only firestore:indexes

Recent Posts

    Archives

    No archives to show.

    Categories

    • No categories

    Blog Categories

    • No categories

    Archives

      Categories

      • No categories