From 84c921fc915e82654bd5cbb2c68287318dcaeaff Mon Sep 17 00:00:00 2001 From: MJedr Date: Tue, 4 Oct 2022 08:45:03 +0200 Subject: [PATCH] revert citedby temp key --- inspire_query_parser/visitors/elastic_search_visitor.py | 2 +- tests/test_elastic_search_visitor.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inspire_query_parser/visitors/elastic_search_visitor.py b/inspire_query_parser/visitors/elastic_search_visitor.py index 6839a22..7107725 100644 --- a/inspire_query_parser/visitors/elastic_search_visitor.py +++ b/inspire_query_parser/visitors/elastic_search_visitor.py @@ -591,7 +591,7 @@ def _generate_terms_lookup(self, path, search_path, value): "terms": { search_path : { "index" : "records-hep", - "temp_recid_for_uuid" : value, + "id" : value, "path" : path } } diff --git a/tests/test_elastic_search_visitor.py b/tests/test_elastic_search_visitor.py index f3a9386..2c8101c 100644 --- a/tests/test_elastic_search_visitor.py +++ b/tests/test_elastic_search_visitor.py @@ -3199,7 +3199,7 @@ def test_elastic_search_visitor_citedby(): "terms": { "self.$ref.raw": { "index": "records-hep", - "temp_recid_for_uuid": "123456", + "id": "123456", "path": "references.record.$ref.raw" } } @@ -3217,7 +3217,7 @@ def test_elastic_search_visitor_complex_query(): "terms": { "self.$ref.raw": { "index": "records-hep", - "temp_recid_for_uuid": "123456", + "id": "123456", "path": "references.record.$ref.raw" } }