# Firestore indexes

## Glover Project Version >= 1.6.63

For the auto-assignment feature to work, you need to create index on your firebase firestore. Here is how to create the index:

* Go to your **firebase** console. Then select **firebase database**, select the **indexes** tab and click on **NEW**

<figure><img src="https://2231621966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVNlKuUeCM_uD7sLQnM%2Fuploads%2F9bvMfc6zZdhmK3Eab9Kj%2Fimage.png?alt=media&#x26;token=b3e7d071-0e6e-429c-802a-e96b3c94d79f" alt=""><figcaption></figcaption></figure>

Fill in the form dialog as shown in the screenshot below then click on "Create Index" then done filling the form:

<figure><img src="https://2231621966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVNlKuUeCM_uD7sLQnM%2Fuploads%2FkkWsf4QSDwcbYAixodY9%2Fimage.png?alt=media&#x26;token=4d2016c4-71dc-4c05-8250-28a9a1759d66" alt=""><figcaption></figcaption></figure>

***

## Project Version <= v 1.6.62

For the auto-assignment feature to work, you need to create index on your firebase firestore. Here is how to create the index:

* Go to your **firebase** console. Then select **firebase database**, select the **indexes** tab and click on **NEW**

![New index](https://2231621966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVNlKuUeCM_uD7sLQnM%2Fuploads%2FsWAmx7HclFk7Qq4hGqz5%2Fimage.png?alt=media\&token=cf1d8bfc-b99b-436e-9551-c9e7110f4f0b)



### Taxi Drivers Index

* Fill in the form dialog as shown in the screenshot below then click on "Create Index" then done filling the form:

<figure><img src="https://2231621966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVNlKuUeCM_uD7sLQnM%2Fuploads%2FPFDFnGlwSequulmybRT5%2Fimage.png?alt=media&#x26;token=21ab8976-f322-4312-a56f-f97424626414" alt=""><figcaption></figcaption></figure>

### Regular Driver index

* Fill in the form dialog as shown in the screenshot below then click on "Create Index" then done filling the form:

<figure><img src="https://2231621966-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVNlKuUeCM_uD7sLQnM%2Fuploads%2FkUPn3Fu4ISoPBPUtMsjc%2Fimage.png?alt=media&#x26;token=ba4edf0d-cf7a-499a-b4e7-ec0c20b0571f" alt=""><figcaption></figcaption></figure>



{% hint style="info" %}
<mark style="color:red;">**Note:**</mark> Please make sure you create the 3 indexes has shown above
{% endhint %}
