Maslosoft Manganel Logo Maslosoft Manganel Documentation
Elasticsearch for Mangan

Edit

Query Decorators

This is advanced topic, for basic usage it is not required. Misused will yield unexpected results.

Mangan cooperation

Manganel is prepared to work with Mangan project, thus it is prepared to translate MongoDB queries for ElasticSearch. Also based on model definition or manually set conditions Manganel will try to create proper query consumable by search engine.

This is done by Query Decorators, which translate internal query parameters to ElasticSearch compatible ones. Decorators setup is done by setting $decorators property. It should contains array of configurations (at mininmum class names) of decorators. Some sane defaults are set, so that Manganel will do search - misconfiguring decorators might yield unexpected results.

Optional decorators