elasticsearchwikimedia

elasticsearch 6 unable to install plugin org.wikimedia.search:extra not compatible


I have installed elastic search version 6.2.3 over docker.

I face the following error when trying to install the following elasticsearch plugin

org.wikimedia.search:extra

Exception in thread "main" java.lang.IllegalArgumentException: plugin [extra] is incompatible with version [6.2.3]; was designed for version [5.5.2]

I tried to install the plugin using the following command:

RUN /usr/share/elasticsearch/bin/elasticsearch-plugin install org.wikimedia.search:extra:5.5.2.3

I was trying to install this plugin to load wikipedia dictionary into elasticsearch but the latest version for the plugin is 5.5.2


Solution

  • Two years ago wikimedia has made available dumps of the production elasticsearch indices. So to load wikipedia, also wiktionary, into elastic is now very simple

    The indices are exported every week and for each wiki there are two exports.

    The content index, which contains only article pages, called content;
    The general index, containing all pages. This includes talk pages, templates, etc, called general;
    

    you can find them here http://dumps.wikimedia.org/other/cirrussearch/current/

    once you have created the index you just type:

    zcat enwiki-current-cirrussearch-general.json.gz | parallel --pipe -L 2 -N 2000 -j3 'curl -s http://localhost:9200/enwiki/_bulk --data-binary @- > /dev/null'
    

    Enjoy!