From 51d7fa7d667a24e91e8dc1c739b45d1cdb00272d Mon Sep 17 00:00:00 2001 From: Andrei Ivanov Date: Tue, 1 Nov 2022 12:38:22 +0300 Subject: [PATCH] fixed search handler --- pom.xml | 2 +- .../net/iponweb/disthene/reader/service/index/IndexService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);