Skip to content

wunderio/elasticsearch_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Helper

<wunderio>

System requirements

Installation

The module requires Elasticsearch-PHP library to communicate with Elasticsearch server. The recommended installation method for this module is with composer, which will automatically install the correct version of the library. See how to install modules with Composer.

Drush commands

drush elasticsearch-helper-list
drush elasticsearch-helper-setup   [index1[,index2,...]]
drush elasticsearch-helper-drop    [index1[,index2,...]]
drush elasticsearch-helper-reindex [index1[,index2,...]]
drush queue-run elasticsearch_helper_indexing

IMPORTANT:

Explicitly SETUP INDICES as the very first step before any indexing. Only this way you get properly set up their mappings and details. Otherwise, implicit mappings are created by Elasticsearch itself which will not have the fine-tuned field configuration (e.g. for language specific analysis like stemming). Once an index is created, it will be ignored by the Elasticsearch Helper setup command and stay the way it is.

Use the following command before any indexing:

drush elasticsearch-helper-setup

Other

To stop logging information about a document that doesn't exist when an entity is deleted and that document is not present in the index, add the following line to the settings.php file:

$settings['elasticsearch_helper.silent_delete'] = TRUE;