diff --git a/pom.xml b/pom.xml
index 90a3aac2..fc3b234c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
net.iponweb.disthene.reader
disthene-reader
jar
- 2.0.16
+ 2.0.17
disthene-reader
https://maven.apache.org
diff --git a/src/main/java/net/iponweb/disthene/reader/service/index/IndexService.java b/src/main/java/net/iponweb/disthene/reader/service/index/IndexService.java
index 17097640..678a7439 100644
--- a/src/main/java/net/iponweb/disthene/reader/service/index/IndexService.java
+++ b/src/main/java/net/iponweb/disthene/reader/service/index/IndexService.java
@@ -203,7 +203,7 @@ public String getSearchPathsAsString(String tenant, String regEx) throws IOExcep
List paths = new ArrayList<>();
for (SearchHit hit : response.getHits()) {
- paths.add(hit.getSourceAsString());
+ paths.add(String.valueOf(hit.getSourceAsMap().get("path")));
}
return Joiner.on(",").skipNulls().join(paths);