Git Product home page Git Product logo

elastic-6-nutch's Introduction

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>

elastic-6-nutch's People

Contributors

asioso avatar thornwishstalon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.