query fix

This commit is contained in:
2024-08-23 09:09:11 +02:00
parent 29cc675206
commit d5bebc7035
+8 -1
View File
@@ -529,6 +529,9 @@ def do_all_persons():
print(f" - {counter}/{counter_end}: {lsf_id}")
counter += 1
if counter < 785:
continue
query = {
"match": {
"lsf_id": lsf_id
@@ -540,7 +543,11 @@ def do_all_persons():
name = firstname + " " + surname
# get persons texts
year_texts = get_year_texts(name)
try:
year_texts = get_year_texts(name)
except:
continue
# get keywords
years_texts = {}
for i in range(len(year_texts)):