Skip to content

Commit

Permalink
Updated indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Jun 28, 2024
1 parent ae6ed74 commit 0983f01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def remove_duplicate_indexed_files(es : Elasticsearch, index_name):
for eachPackageName in checkDict.keys():
if checkDict[eachPackageName]['count'] > 1:
for eachId in checkDict[eachPackageName]['id']:
if eachId[0] == 'clocks':
response = es.delete(index=index_name, id=eachId[0], doc_type=eachId[1])
response = es.delete(index=index_name, id=eachId[0], doc_type=eachId[1])

# Function to index release details into Elasticsearch
def index_release_to_elasticsearch(es : Elasticsearch, index_name, release_details, token, force):
Expand Down

0 comments on commit 0983f01

Please sign in to comment.