tree: fd0aa5054216901833e6e1a0eafd0b6d62871188 [path history] [tgz]
  1. src/
  2. build.xml
  3. ivy.xml
  4. plugin.xml

indexer-dummy plugin for Nutch

indexer-dummy plugin is used for writing “action”\t“url”\n lines to a plain text file for debugging purposes. It does not work in distributed mode, the output is written to the local filesystem, not to HDFS. The configuration for the index writers is on conf/index-writers.xml file, included in the official Nutch distribution and it's as follow:

<writer id="<writer_id>" class="org.apache.nutch.indexwriter.dummy.DummyIndexWriter">

Each <writer> element has two mandatory attributes:

  • <writer_id> is a unique identification for each configuration. This feature allows Nutch to distinguish each configuration, even when they are for the same index writer. In addition, it allows to have multiple instances for the same index writer, but with different configurations.

  • org.apache.nutch.indexwriter.dummy.DummyIndexWriter corresponds to the canonical name of the class that implements the IndexWriter extension point. This value should not be modified for the indexer-dummy plugin.


The mapping section is explained here. The structure of this section is general for all index writers.


Each parameter has the form <param name="<name>" value="<value>"/> and the parameters for this index writer are:

Parameter NameDescriptionDefault value
pathPath where the file will be created../dummy-index.txt
deleteIf delete operations should be written to the file.false