Skip to content

Commit

Permalink
Update to Neo4j 3.1.4, change to shade plugin for easier installation
Browse files Browse the repository at this point in the history
  • Loading branch information
jexp committed Jun 3, 2017
1 parent 71837eb commit d589bbc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 31 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dependency-reduced-pom.xml
data
*.log
db
Expand Down
33 changes: 11 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,53 +1,42 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<properties>
<neo4j.version>3.1.0</neo4j.version>
</properties>

<modelVersion>4.0.0</modelVersion>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-elasticsearch</artifactId>
<packaging>jar</packaging>
<version>3.1.0</version>
<version>3.1.4</version>
<name>neo4j-elasticsearch</name>
<description>Neo4j Elasticsearch Integration</description>

<properties>
<neo4j.version>${project.version}</neo4j.version>
</properties>

<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>process-resources</phase>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
<goal>shade</goal>
</goals>
<configuration>
<includeScope>runtime</includeScope>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
15 changes: 6 additions & 9 deletions readme.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Neo4j Elastic{Search} Integration

image:https://travis-ci.org/neo4j-contrib/neo4j-elasticsearch.svg?branch=3.0["Build Status", link="https://travis-ci.org/neo4j-contrib/neo4j-elasticsearch"]
image:https://travis-ci.org/neo4j-contrib/neo4j-elasticsearch.svg?branch=3.1["Build Status", link="https://travis-ci.org/neo4j-contrib/neo4j-elasticsearch"]

Integrates Neo4j change-feed with an ElasticSearch cluster.

Expand All @@ -14,12 +14,9 @@ A transaction event listener checks changed Nodes against a given label, renders

=== Installation

* Clone this repository and run `mvn clean install -DskipTests`
* Run `mvn dependency:copy-dependencies`. Copy the `jar` files in `target/dependency` to your Neo4j instance's
`plugins` folder
* Also copy `target/neo4j-elasticsearch-3.0.0.jar` to the
`plugins` folder
* Modify `conf/neo4j.conf` accordingly (see the Example section)
* Download the jar from the http://github.com/neo4j-contrib/neo4j-elasticsearch[latest release].
* Copy to `$NEO4J_HOME/plugins` or for Neo4j community to the plugins folder that you find on the `Options` pane.
* Modify `$NEO4J_HOME/conf/neo4j.conf` accordingly (see the Example section)
* Restart Neo4j

=== Example
Expand Down Expand Up @@ -54,6 +51,7 @@ SET n.name = n.name;
By default, the indexes created will contain fields for the Neo4j ID and Labels, named `id` and `labels`.
These will be auto-created as searchable fields, but, if you'd prefer they not be included,
simply add one or both of these lines to your `conf/neo4j.conf` file.

```
elasticsearch.include_id_field=false
elasticsearch.include_labels_field=false
Expand All @@ -62,6 +60,7 @@ elasticsearch.include_labels_field=false
=== Discovery
By default discovery (discovering of nodes within a cluster) is turned off.
If you would like to turn discovery on, use the discovery option.

```
elasticsearch.discovery=true
```
Expand All @@ -71,8 +70,6 @@ elasticsearch.discovery=true
To run the tests, run `mvn test`. Make sure that an elastic{search} server is running on
`localhost:9200`.



=== Todo

* Support indexing of relationships

0 comments on commit d589bbc

Please sign in to comment.