<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"/>
    <property name="searchName" 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 domain resources by TLD. -->
  <datastore-index kind="DomainBase" ancestor="false" source="manual">
    <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 the most recently created domain resources. -->
  <datastore-index kind="DomainBase" ancestor="false" source="manual">
    <property name="tld" direction="asc"/>
    <property name="creationTime" direction="desc"/>
  </datastore-index>
  <!-- For finding non-autorenewing domains to be deleted. -->
  <datastore-index kind="DomainBase" ancestor="false" source="manual">
    <property name="autorenewEndTime" 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"/>
    <property name="fullyQualifiedHostName" direction="asc"/>
  </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="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 querying HistoryEntries. -->
  <datastore-index kind="HistoryEntry" ancestor="true" source="manual">
    <property name="modificationTime" direction="asc"/>
  </datastore-index>
  <datastore-index kind="HistoryEntry" ancestor="false" source="manual">
    <property name="clientId" direction="asc"/>
    <property name="modificationTime" direction="asc"/>
  </datastore-index>
  <!-- For RDAP. -->
  <datastore-index kind="DomainBase" ancestor="false" source="manual">
    <property name="currentSponsorClientId" direction="asc"/>
    <property name="fullyQualifiedDomainName" direction="asc"/>
  </datastore-index>
  <datastore-index kind="DomainBase" ancestor="false" source="manual">
    <property name="currentSponsorClientId" direction="asc"/>
    <property name="tld" direction="asc"/>
    <property name="fullyQualifiedDomainName" direction="asc"/>
  </datastore-index>
  <datastore-index kind="DomainBase" ancestor="false" source="manual">
    <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>
