<datastore-indexes autoGenerate="false">
    <!-- For finding contact resources by registrar. -->
    <datastore-index kind="ContactResource" ancestor="false" source="manual">
        <property name="currentSponsorClientId" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For finding domain resources by registrar. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="^i" direction="asc"/>
        <property name="currentSponsorClientId" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For finding domain resources by TLD. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="^i" direction="asc"/>
        <property name="tld" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For finding domain resources by registrar. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="currentSponsorClientId" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For finding host resources by registrar. -->
    <datastore-index kind="HostResource" ancestor="false" source="manual">
        <property name="currentSponsorClientId" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For finding account balance of registrar and viewing billing history. -->
    <datastore-index kind="RegistrarBillingEntry" ancestor="true" source="manual">
        <property name="currency" direction="asc"/>
        <property name="created" direction="desc"/>
    </datastore-index>
    <!-- For determining the active domains linked to a given contact. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="allContacts.contact" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For determining the active domains linked to a given host. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="nsHosts" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For RDAP searches by linked nameserver. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="^i" direction="asc"/>
        <property name="nsHosts" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For WHOIS IP address lookup -->
    <datastore-index kind="HostResource" ancestor="false" source="manual">
        <property name="inetAddresses" direction="asc"/>
        <property name="deletionTime" direction="asc"/>
    </datastore-index>
    <!-- For Poll -->
    <datastore-index kind="PollMessage" ancestor="false" source="manual">
        <property name="clientId" direction="asc"/>
        <property name="eventTime" direction="asc"/>
    </datastore-index>
    <datastore-index kind="PollMessage" ancestor="true" source="manual">
        <property name="clientId" direction="asc"/>
        <property name="eventTime" direction="asc"/>
    </datastore-index>
    <!-- For the history viewer. -->
    <datastore-index kind="HistoryEntry" ancestor="true" source="manual">
        <property name="modificationTime" direction="asc"/>
    </datastore-index>
    <!-- For RDAP. -->
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="^i" direction="asc"/>
        <property name="fullyQualifiedDomainName" direction="asc"/>
    </datastore-index>
    <datastore-index kind="DomainBase" ancestor="false" source="manual">
        <property name="^i" direction="asc"/>
        <property name="tld" direction="asc"/>
        <property name="fullyQualifiedDomainName" direction="asc"/>
    </datastore-index>
    <datastore-index kind="HostResource" ancestor="false" source="manual">
        <property name="deletionTime" direction="asc"/>
        <property name="fullyQualifiedHostName" direction="asc"/>
    </datastore-index>
    <datastore-index kind="ContactResource" ancestor="false" source="manual">
        <property name="deletionTime" direction="asc"/>
        <property name="searchName" direction="asc"/>
    </datastore-index>
</datastore-indexes>
