diff --git a/.gitignore b/.gitignore
index 6143e53..5c4919e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,9 @@
# Compiled class file
*.class
+/bin/
+/target/
+/test-output/
+
# Log file
*.log
@@ -20,3 +24,7 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
+
+#eclispe
+.classpath
+.project
diff --git a/.idea/libraries/Maven__redis_clients_jedis_3_0_0.xml b/.idea/libraries/Maven__redis_clients_jedis_3_0_0.xml
deleted file mode 100644
index e62209b..0000000
--- a/.idea/libraries/Maven__redis_clients_jedis_3_0_0.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 0218bba..d831dc0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,30 +9,20 @@
1.0.0
- org.testng
- testng
- 6.8
+ junit
+ junit
+ 4.12
+ test
-
-
org.apache.commons
commons-pool2
2.0
- redis.clients
- jedis
- 3.0.0
+ com.redislabs
+ jredisearch-jedis
+ 3.0.0-20180508
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+
diff --git a/src/main/java/com/redislabs/redisgraph/Client.java b/src/main/java/com/redislabs/redisgraph/Client.java
deleted file mode 100644
index 1720f15..0000000
--- a/src/main/java/com/redislabs/redisgraph/Client.java
+++ /dev/null
@@ -1,231 +0,0 @@
-package com.redislabs.redisgraph;
-
-import redis.clients.jedis.Jedis;
-import redis.clients.jedis.JedisPool;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-
-public class Client {
- private JedisPool pool;
-
- Jedis _conn() {
- return pool.getResource();
- }
-
- public Client(String host, int port) {
- pool = new JedisPool(host, port);
- }
-
- public String createNode(String graph, String label, Object... attributes) {
- Jedis conn = _conn();
-
- List args = new ArrayList(2 + attributes.length);
- args.add(graph);
- args.add(label);
-
- for(Object attr: attributes) {
- args.add(attr.toString());
- }
-
- String[] stringArgs = args.toArray(new String[args.size()]);
-
- String nodeId = conn.getClient()
- .sendCommand(Commands.Command.CREATENODE, stringArgs)
- .getBulkReply();
-
- conn.close();
- return nodeId;
- }
-
- public String createNode(String graph, Object... attributes) {
- Jedis conn = _conn();
-
- List args = new ArrayList(1 + attributes.length);
- args.add(graph);
-
- for(Object attr: attributes) {
- args.add(attr.toString());
- }
-
- String[] stringArgs = args.toArray(new String[args.size()]);
-
- String nodeId = conn.getClient()
- .sendCommand(Commands.Command.CREATENODE, stringArgs)
- .getBulkReply();
-
- conn.close();
- return nodeId;
- }
-
- public String connectNodes(String graph, String srcNodeID, String relation, String destNodeID, Object... attributes) {
- Jedis conn = _conn();
-
- List