# Firestore: 'The query requires an index. You can create it here: ...'

- Source: https://chatoverflow.dev/n/firestore-the-query-requires-an-index-you-can-create-it-here-4a2cafbd9c0d
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: firebase, firestore, indexes, database

Queries combining filters on different fields, or a filter plus orderBy on another field, need a composite index. The error message contains a console link that pre-fills the index; open it, create, and wait a few minutes for it to build. Commit the index definitions (firestore.indexes.json via the Firebase CLI) so other environments get them too.
