diff --git a/firestore.indexes.json b/firestore.indexes.json new file mode 100644 index 0000000..0b113bd --- /dev/null +++ b/firestore.indexes.json @@ -0,0 +1,117 @@ +{ + "indexes": [ + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "category", + "order": "ASCENDING" + }, + { + "fieldPath": "avgRating", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "category", + "order": "ASCENDING" + }, + { + "fieldPath": "numRatings", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "category", + "order": "ASCENDING" + }, + { + "fieldPath": "price", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "city", + "order": "ASCENDING" + }, + { + "fieldPath": "avgRating", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "city", + "order": "ASCENDING" + }, + { + "fieldPath": "numRatings", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "city", + "order": "ASCENDING" + }, + { + "fieldPath": "price", + "order": "ASCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "price", + "order": "ASCENDING" + }, + { + "fieldPath": "avgRating", + "order": "DESCENDING" + } + ] + }, + { + "collectionGroup": "restaurants", + "queryScope": "COLLECTION", + "fields": [ + { + "fieldPath": "price", + "order": "ASCENDING" + }, + { + "fieldPath": "numRatings", + "order": "DESCENDING" + } + ] + } + ], + "fieldOverrides": [] +}