2017 © Pedro Peláez
 

elgg-plugin elasticsearch

An Elasticsearch integration for Elgg.

image

pleio/elasticsearch

An Elasticsearch integration for Elgg.

  • Tuesday, July 31, 2018
  • by bartj
  • Repository
  • 11 Watchers
  • 1 Stars
  • 2,961 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

An Elasticsearch integration for Elgg

This plugin adds full-text search capabilities to your Elgg installation, allowing you to search through entities and annotations (in ELGG 1.8)., (*1)

Installation and configuration

  1. Install the plugin (and it's dependencies) by running:, (*2)

    composer require pleio/elasticsearch
  2. Add the following configuration to engine/settings.php:, (*3)

    $CONFIG->elasticsearch = array(
        'hosts' => array(
            '127.0.0.1'
        )
    );
    
    $CONFIG->elasticsearch_index = 'pleio-dev';
  3. Activate the plugin through the Elgg admin panel., (*4)

  4. Create the index and mappings in Elasticsearch by running:, (*5)

    php console.php es:index:reset

This command will (re-)create the index. All existing content attached to the Elasticsearch will be deleted. From now on all entity CRUD actions will automatically be synced with Elasticsearch., (*6)

Bulk synchronisation

The tool comes with a tool to synchronize all existing content with Elasticsearch. Run, (*7)

php console.php es:sync:all

to start a bulk synchronisation., (*8)

File contents indexing

It is also possible to use this tool in conjunction with PleioAsyncTaskHandler and tika-server to search through ElggFile contents., (*9)

  1. Download and run the tika-server:, (*10)

    wget http://www.apache.org/dyn/closer.cgi/tika/tika-server-1.15.jar
    java -jar tika-server-1.15.jar
  2. Add the following configuration to engine/settings.php:, (*11)

    $CONFIG->tika_server = ["localhost", 9998];
  3. Make sure the PleioAsyncTaskHandler is running by:, (*12)

    php console.php async:taskhandler

Now when files are added or updated, the contents are indexed automatically., (*13)

The Versions

31/07 2018

dev-master

9999999-dev

An Elasticsearch integration for Elgg.

  Sources   Download

GPL-2.0

The Requires

 

plugin search elgg

29/03 2016

dev-ruben

dev-ruben

An Elasticsearch integration for Elgg.

  Sources   Download

GPL-2.0

The Requires

 

plugin search elgg

18/11 2015

v1.0

1.0.0.0

An Elasticsearch integration for Elgg.

  Sources   Download

GPL-2.0

The Requires

 

plugin search elgg