Skip to content

Commit

Permalink
change ES query
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Jul 31, 2019
1 parent 5838a38 commit 1f6ac14
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions libraries/plugins/elasticsearch/elasticsearch_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"("
}
}
}
Expand Down

0 comments on commit 1f6ac14

Please sign in to comment.