Class IdolCommitter

All Implemented Interfaces:
IBatchConsumer, ICommitter, IXMLConfigurable, AutoCloseable

public class IdolCommitter extends AbstractBatchCommitter

Commits documents to IDOL Server/DIH or Connector Framework Server (CFS). Specifying either the index port or the cfs port determines which of the two will be the documents target.

XML configuration usage:


<committer
    class="com.norconex.committer.idol.IdolCommitter">
  <url>(IDOL/DIH/CFS index action URL. Default is "http://localhost:9001")</url>
  <cfs>[false|true](whether URL points to a Connector Framework Server)</cfs>
  <databaseName>
    (Optional IDOL Database Name where to store documents)
  </databaseName>
  <dreAddDataParams>
    <param
        name="(parameter name)">
      (parameter value)
    </param>
  </dreAddDataParams>
  <dreDeleteRefParams>
    <param
        name="(parameter name)">
      (parameter value)
    </param>
  </dreDeleteRefParams>
  <sourceReferenceField>
    (Optional name of the field holding the value to be stored in the
    IDOL "DREREFERENCE" field. Default is the document reference.)
  </sourceReferenceField>
  <sourceContentField>
    (Optional name of the field holding the value to be stored in the
    IDOL "DRECONTENT" field. Default is the document content stream.)
  </sourceContentField>
</committer>

XML configuration entries expecting millisecond durations can be provided in human-readable format (English only), as per DurationParser (e.g., "5 minutes and 30 seconds" or "5m30s").

XML usage example:


<committer
    class="com.norconex.committer.idol.IdolCommitter">
  <url>http://some_host:9100</url>
  <databaseName>some_database</databaseName>
</committer>
Author:
Pascal Essiembre