Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1445

Add ElasticIndexerJob that indexes to elasticsearch

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None

    Description

      We have created a new indexer job ElasticIndexerJob that indexes to elasticsearch. It is orginally based upon https://github.com/ctjmorgan/nutch-elasticsearch-indexer (Apache2 license), but we have modified it greatly to make it integrate as good as possible into Nutch. The greatest modification is that documents are asynchronously flushed in bulk to elasticsearch.

      Elasticsearch rocks. Both performance and ease of confiugration is awesome. You simply deploy a server by unpacking the tar, configure the clustername, start the server and fire away indexing requests. Indices are automatically created. Fields are automapped. (Of course it is recommended to create your own optimized mapping, but that is beyond scope of this issue). Multiple servers connect without extra configuration, simply by using the same clustername. (By means of multicast). There a tons of advanced options, such as sharding, replication, disk striping etc.

      To give an example of the performance: With 20+ nodes we are able to index over 1M docs (average sized webdocuments) per minute. The best part is that the added documents are almost instantly searchable, so there no hidden commit costs that Solr has. This is with out-of-the-box configuration.

      (I will attach patch and commit for Nutch2. Feel free to adapt for trunk.)

      Attachments

        1. NUTCH-1445.patch
          13 kB
          Ferdy
        2. NUTCH-1445-addPropsToConfig.patch
          1.0 kB
          Ferdy
        3. NUTCH-1445-addToNutchScript.patch
          1.0 kB
          Ferdy

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ferdy.g Ferdy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: