<configure
    xmlns="http://namespaces.zope.org/zope"
    i18n_domain="untranslated"
    >

  <include
      package="zope.component"
      file="meta.zcml"
      />
  <include
      package="zope.security"
      file="meta.zcml"
      />
  <include file="meta.zcml" />

  <include package=".browser" />

  <!-- Querying -->

  <class class="scorched.connection.SolrInterface">
    <implements interface=".interfaces.IConnection" />
  </class>

  <class class="scorched.response.SolrResponse">
    <implements interface=".interfaces.IResponse" />
  </class>

  <adapter
      factory=".adapters.connection"
      for=".interfaces.IConnectionConfig"
      />
  <adapter
      factory=".adapters.search_query"
      for=".interfaces.IConnection"
      />
  <adapter factory=".adapters.SearchResponse" />
  <utility
      factory=".solr_search.SiteSearch"
      provides="..interfaces.ISiteSearch"
      />
  <utility
      factory=".solr_search.Maintenance"
      provides=".interfaces.IMaintenance"
      />

  <!-- Indexing -->
  <adapter
      factory=".indexers.path_string"
      name="path_string"
      />
  <adapter
      factory=".indexers.path_depth"
      name="path_depth"
      />
  <adapter
      factory=".indexers.path_parents"
      name="path_parents"
      />
  <adapter
      factory=".indexers.ContentAdder"
      for="plone.dexterity.interfaces.IDexterityContent
           .interfaces.IConnection"
      name="default"
      />
  <adapter
      factory=".indexers.BinaryAdder"
      for="plone.dexterity.interfaces.IDexterityContent
           .interfaces.IConnection"
      name="File"
      />
  <adapter
      factory=".indexers.getObjPositionInParent"
      name="getObjPositionInParent"
      />
  <utility
      factory=".indexers.ContentIndexer"
      provides="Products.CMFCore.interfaces.IIndexQueueProcessor"
      name="pisolr"
      />

</configure>
