Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

orientechnologies/orientdb-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

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"}]}

About

OrientDB Elastic Search Plugin

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages