Install

Works with Drupal: 8.x

Using dev releases is not recommended, except for testing.

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 19.3 KB
MD5: b78db9741e3861034e2ee2a828f6d1a6
SHA-1: 6903b9a7c81d085516aa1a1ab50c8d310427e2db
SHA-256: b5a856e38e7b34ea001f3b10e92c9764cdd526f8bc618ea98cbd36a06efc7711
Download zip 25.35 KB
MD5: 47aa655cc27bfba56bda97a661e5df60
SHA-1: 0121159ad51b26dc40dce5d9d9e7949206791260
SHA-256: ace33970eeb47d40abc6f17f394dbaba80b34a825daec52addf79e81640b41a5

Release notes

Drupal 8 version of MongoDB Indexer.
MongoDB Indexer uses events instead of hooks to communicate between interested modules.
Example EventSubsriber implementation at Example section.

FEATURES
--------
* Selectable content types to be sent to MongoDB including custom entities,
nodes, comments, taxonomy, users, and files.
* Ability to re-indexing a single node content type or a single bundle of
a custom entity.
* Re-indexing operation are separated from normal indexing operation.
* Flexibility in setting up PHP MongClient connection in settings.php.
* Support for a single MongoDB instance or a Replica Set.

SPONSORS
--------

This project has been sponsored by:

* Exove Ltd a leading open source web design and
development company in Finland and other Nordic countries, Baltics,
and the UK.

EXAMPLE
--------
namespace Drupal\video\EventSubscriber;

use Symfony\Component\EventDispatcher\EventSubscriberInterface;

class VideoSubscriber implements EventSubscriberInterface {
static function getSubscribedEvents() {
$events['mongodb_indexer.build'][] = array('onDocumentBuild', 0);
return $events;
}

public function onDocumentBuild($event) {

$document = $event->getDocument();
$document->field_example = 'I am example';

$event->setDocument($document);

}
}

Created by: peiha
Created on: 20 Jul 2016 at 05:50 UTC
Last updated: 20 Jul 2016 at 05:53 UTC
New features

Other releases