/elastic-6-nutch

Nutch 1.x Indexer Plugin that runs against ES6.7

Primary LanguageJavaApache License 2.0Apache-2.0

NUTCH 1.x Elastic 6 Indexer Plugin

this just updates the existing elastic indexer to work with ES 6.7 and NUTCH 1.x.

Dependencies were updated, namespace and class changes got fixed.

Install/Build

put this source folder (elastic-6-nutch) into nutch's src/plugin directory

build with nutch

add this line to nutch's build.xml for all targets!

<ant dir="elastic-6-nutch" target="deploy"/>

build this plugin with nutch

ant

Configuration

Index writer configuration:

add your writer configuration in /conf/index-writers.xml

<writer id="indexer_elastic_6_1" class="org.apache.nutch.indexwriter.elastic_6.ElasticIndexWriter">
    <parameters>
      <param name="host" value="0.0.0.0"/>
      <param name="port" value="9300"/>
      <param name="index" value="nutchindex"/>
      <param name="max.bulk.docs" value="250"/>
      <param name="max.bulk.size" value="2500500"/>
      <param name="exponential.backoff.millis" value="100"/>
      <param name="exponential.backoff.retries" value="10"/>
      <param name="bulk.close.timeout" value="600"/>
    </parameters>
    <mapping>
      <copy>
        <field source="title" dest="title,search"/>
      </copy>
      <rename />
      <remove />
    </mapping>
  </writer>

Use this plugin:

enable it in nutch-site.xml, by using indexer-elastic-6 in the plugin.includes property e.g.:

<property>
    <name>plugin.includes</name>        
    <value>protocol-httpclient|urlfilter-regex|parse-(html|text|metatags|tika)|index-(basic|anchor|urlmeta|more|metadata)|query-(basic|site|url)|indexer-elastic-6|nutch-extensionpoints|summary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)||language-identifier</value>
</property>