All versions of this manual
X
 

Search index: Neo4j

Neo4j supports search with the elasticSearch, elasticSearch2 and neo2es connectors.

See details on how to configure ElasticSearch with Linkurious.

Neo4j-to-elasticsearch integration

Neo4j-to-elasticsearch is a Neo4j plugin that allows for automatic synchronization between Neo4j and Elasticsearch. This means that all changes to Neo4j are automatically propagated to Elasticsearch.

Resources for supported versions of neo4j-to-elasticsearch:

Install neo4j-to-elasticsearch

Follow these steps to use install this Neo4j plugin:

  1. Download the GraphAware framework JAR
    • Choose a version A.B.C.x where A.B.C matches your Neo4j version and x is 44 or later.
  2. Download the neo4j-to-elasticsearch JAR
    • Choose a version A.B.C.x.y where A.B.C matches your Neo4j version and x.y is 44.8 or later.
  3. Copy graphaware-server-community-all-A.B.C.x.jar and graphaware-neo4j-to-elasticsearch-A.B.C.x.y.jar to your neo4j/plugins directory
  4. Edit the Neo4 configuration at neo4j/conf/neo4j.conf and add the following lines at the beginning of the file:
    com.graphaware.runtime.enabled=true
    com.graphaware.module.ES.1=com.graphaware.module.es.ElasticSearchModuleBootstrapper
    com.graphaware.module.ES.uri=HOST_OF_YOUR_ELASTICSEARCH_SERVER
    com.graphaware.module.ES.port=PORT_OF_YOUR_ELASTICSEARCH_SERVER
    com.graphaware.module.ES.relationship=(true)
    com.graphaware.module.ES.mapping=AdvancedMapping
    com.graphaware.module.ES.keyProperty=ID()
  5. Restart Neo4j

Integrate with Linkurious

Once the neo4j-to-elasticsearch plugin is installed, you need to change the data-source configuration to use the neo2es vendor.

Set the dataSources.index.vendor key to neo2es in the configuration (linkurious/data/config/production.json):

{
  "dataSources": [
    {
      "graph": {
        "vendor": "neo4j"
        "url": "http://127.0.0.1:7474"
      },
      "index": {
        "vendor": "neo2es"
      }
    }
  ]
}

Restart Linkurious after saving the configuration.