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" } }