From 0603eea13517e00db190f4605cab05655b06a4fd Mon Sep 17 00:00:00 2001 From: Ihor M Date: Tue, 15 Jun 2021 22:13:05 +0200 Subject: [PATCH] elastic 7 format updates --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/elasticsearch.rs | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 884b188..b8a2736 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1396,7 +1396,7 @@ dependencies = [ [[package]] name = "microtools" -version = "0.2.2" +version = "0.3.1" dependencies = [ "actix", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 0a5f802..d1c0da3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "microtools" -version = "0.2.2" +version = "0.3.1" authors = ["Bodo Junglas ", "Ihor Mordashev { #[derive(Clone, Debug, Deserialize)] pub struct QueryHits { - pub total: u64, + pub total: QueryHitsTotal, pub hits: Vec>, } +#[derive(Clone, Debug, Deserialize)] +pub struct QueryHitsTotal { + pub total: u64, + pub relation: String, +} + #[derive(Clone, Debug, Deserialize)] pub struct Doc { #[serde(rename = "_id")]