From 1f6ac147d5b298fecf17e7bc281676160192ea70 Mon Sep 17 00:00:00 2001 From: Alfredo Date: Wed, 31 Jul 2019 17:33:37 -0300 Subject: [PATCH] change ES query --- .../elasticsearch/elasticsearch_plugin.cpp | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/libraries/plugins/elasticsearch/elasticsearch_plugin.cpp b/libraries/plugins/elasticsearch/elasticsearch_plugin.cpp index 3463b91ae4..f48d2e6f82 100644 --- a/libraries/plugins/elasticsearch/elasticsearch_plugin.cpp +++ b/libraries/plugins/elasticsearch/elasticsearch_plugin.cpp @@ -523,22 +523,9 @@ operation_history_object elasticsearch_plugin::get_operation_by_id(operation_his const string query = R"( { "query": { - "bool": { - "must": [ - { - "query_string": { - "query": "account_history.operation_id: )" + operation_id_string + R"(" - } - }, - { - "range": { - "block_data.block_time": { - "gte": "now-20y", - "lte": "now" - } - } - } - ] + "match": + { + "account_history.operation_id": )" + operation_id_string + R"(" } } }