neo4j-to-elasticsearch | GraphAware Framework Module for Integrating Neo4j | Graph Database library
kandi X-RAY | neo4j-to-elasticsearch Summary
kandi X-RAY | neo4j-to-elasticsearch Summary
GraphAware Neo4j Elasticsearch Integration (Neo4j Module) - RETIRED.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Search for nodes or relationships
- Gets a relationship resolver that can be used to resolve relationships
- Gets the node resolver
- Builds a list of search matches from a search result
- Starts the database
- Executes the bulk operations
- Reindex a database
- Flushes the batches
- Starts the Elasticsearch writer
- Create a custom JestClient
- Stops the Elasticsearch client
- Shut down the client
- Creates the indices
- Creates an index
- Bootstrap the Elasticsearch module
- Load a Mapping class
- Configures ElasticSearch
- Returns a bulk delete operation
- Queries a single node
- Creates a hash code for this request
- Returns true if the specified object matches the specified object
neo4j-to-elasticsearch Key Features
neo4j-to-elasticsearch Examples and Code Snippets
Community Discussions
Trending Discussions on neo4j-to-elasticsearch
QUESTION
I have a number of Elastic Search indices which are updated on a regular basis, and I'd like to have these updates reflected in a neo4j graph database, with a minimal delay between the indexing of the item in Elastic Search and its being updated into Neo4j.
(Also it's important to have administrative work kept low: I'd just want to update a cypher statement to define the mapping between the index documents and the graph, for example, so that once I've created an index, it's limited work to have its data added to Neo4j).
Is it possible to do this using Elastic search watchers and triggers? Or by some other means?
I'm aware of the APOC library's Elastic Search functions in Neo4j, but I'd rather push from Elastic Search on update than pull from Neo4j. GraphAware also have an extension, but it seems aimed mostly at the Neo4j to ES direction.
...ANSWER
Answered 2020-Jul-03 at 19:04ElasticSearch triggers can post a HTTP request and Neo4j has a HTTP Api, so that seems doable: https://neo4j.com/docs/http-api/current/
If I were to do this in production I would probably develop a microservice that listens to the webhooks and stores the data into Neo4j. This way you can introduce retry policy as well as log errors if nothing else.
After doing a bit of research you could configure the ElasticSearch to push updates to Kafka with tools such as https://github.com/malike/elasticsearch-kafka-watch, and then ingest the data with the Neo4j Kafka Sink.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install neo4j-to-elasticsearch
You can use neo4j-to-elasticsearch like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the neo4j-to-elasticsearch component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page