Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Tryton module for Elastic Search

Project Description

This module allows tryton records of selected models to be exported to Elastic Search full text search engine.

Configuration

  1. Add a new configuration line to trytond.conf elastic_search_server=es.fulfil.io
  2. Add the models you want to index into document types. Administration > Elastic Search > Document Types

How it works

The module adds an Index Backlog table to which records that need synchronisation with Elastic Search are added.

A tryton CRON task which runs every 1 minute (by default) looks into the backlog index and makes the corresponding update to elastic search.

Records, that are deleted are deleted from the index.

Defining what information gets indexed

By default the only information indexed from a record is the rec_name of the record. If you need more information to be sent, that is possible by defining a new method called elastic_search_json in the model in a custom module and it will be used instead of just rec_name. An example of such a method in the product model is below.

__metaclass__ = PoolMeta

class Product:
    __name__ = "product.product"

    def elastic_search_json(self):
        """
        Return a JSON serializable dictionary of values
        that need to be indexed by the search engine
        """
        return {
            'name': self.name,
            'category': self.category.id,
            'category_name': self.category.name,
        }
Release History

Release History

This version
History Node

4.0.0.4

History Node

4.0.0.3

History Node

4.0.0.2

History Node

4.0.0.1

History Node

3.4.3.0

History Node

3.4.2.0

History Node

3.4.1.0

History Node

3.4.0.2

History Node

3.4.0.1

History Node

3.2.0.8

History Node

3.2.0.7

History Node

3.2.0.6

History Node

3.2.0.5

History Node

3.2.0.4

History Node

3.2.0.3

History Node

3.2.0.2

History Node

3.2.0.1

History Node

3.0.1.0

History Node

3.0.1.0dev

History Node

2.8.1.0

History Node

2.8.0.1

History Node

2.6.0.2

History Node

2.6.0.2dev

History Node

2.6.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
trytond_elastic_search-4.0.0.4.tar.gz (10.4 kB) Copy SHA256 Checksum SHA256 Source Sep 6, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting