Skip to content

Commit

Permalink
revert citedby temp key
Browse files Browse the repository at this point in the history
  • Loading branch information
MJedr committed Oct 4, 2022
1 parent 30661aa commit 84c921f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inspire_query_parser/visitors/elastic_search_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 2 additions & 2 deletions tests/test_elastic_search_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand All @@ -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"
}
}
Expand Down

0 comments on commit 84c921f

Please sign in to comment.