GithubHelp home page GithubHelp logo

isabella232 / orientdb-elasticsearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from orientechnologies/orientdb-elasticsearch

0.0 0.0 0.0 26 KB

OrientDB Elastic Search Plugin

License: Apache License 2.0

Java 100.00%

orientdb-elasticsearch's Introduction

Installation

This is the manual procedure to install Elastic Search plugin in OrientDB.

1. Compiles the plugin

mvn clean install

2. Copy libraries under OrientDB's lib directory.

Copy the generated orientdb-elasticsearch-*-dist.jar file is under the target directory into OrientDB lib directory.

3. Register the OrientDB Elastic Search plugin

In OrientDB's config/orientdb-config.xml file under the handlers (Handler is a plugin) tag, add this XML snippet:

<handler class="com.orientechnologies.es.plugin.es.OElasticSearchPlugin">
    <parameters>
        <parameter value="true" name="enabled"/>
    </parameters>
</handler>

4. Configure the synchronization

The Elastic Search plugin creates this file under databases/<your-db>/elastic-search-config.json:

{
  "es": {
    "host": "localhost",
    "port": 9220,
    "clusterName": "elasticsearch"
  },
  "include": {
    "classes": {
    },
    "clusters": {
    }
  },
  "exclude": {
    "classes": [],
    "clusters": []
  }
}

You can modify it to configure the synchronization.

5. Execute a synchronization

You can execute a synchronization of classes, clusters or even the output of a command:

  • classes
  • clusters
  • command

Example synchronizing the class "V":

curl -u admin:admin --data "{'classes':['V']}" http://localhost:2480/essync/GamesOfThrones
{"result":[{"@type":"d","@version":0,"value":"Synchronized 2261 records"}]}

Example synchronizing a query:

curl -u admin:admin --data "{'command':'select from V where age > 10'}" http://localhost:2480/essync/GamesOfThrones
{"result":[{"@type":"d","@version":0,"value":"Synchronized 23 records"}]}

orientdb-elasticsearch's People

Contributors

lvca avatar robfrank avatar wolf4ood avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.