From 56aad288f444faba7e8ad8417d4d1e042f2f6b62 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Tue, 22 Apr 2025 19:12:01 +0200 Subject: [PATCH] Simplify elasticsearch index to make it work better --- .../search/indexes/participation/tournament_text.txt | 1 - .../search/indexes/participation/video_text.txt | 5 ----- .../indexes/registration/adminregistration_text.txt | 2 -- .../indexes/registration/coachregistration_text.txt | 7 ------- .../indexes/registration/studentregistration_text.txt | 9 --------- .../indexes/registration/volunteerregistration_text.txt | 2 -- 6 files changed, 26 deletions(-) delete mode 100644 participation/templates/search/indexes/participation/video_text.txt diff --git a/participation/templates/search/indexes/participation/tournament_text.txt b/participation/templates/search/indexes/participation/tournament_text.txt index b5fb63a..8aaf0f6 100644 --- a/participation/templates/search/indexes/participation/tournament_text.txt +++ b/participation/templates/search/indexes/participation/tournament_text.txt @@ -1,3 +1,2 @@ {{ object.name }} -{{ object.place }} {{ object.description }} diff --git a/participation/templates/search/indexes/participation/video_text.txt b/participation/templates/search/indexes/participation/video_text.txt deleted file mode 100644 index 4303f3a..0000000 --- a/participation/templates/search/indexes/participation/video_text.txt +++ /dev/null @@ -1,5 +0,0 @@ -{{ object.link }} -{{ object.participation.team.name }} -{{ object.participation.team.trigram }} -{{ object.participation.problem }} -{{ object.participation.get_problem_display }} diff --git a/registration/templates/search/indexes/registration/adminregistration_text.txt b/registration/templates/search/indexes/registration/adminregistration_text.txt index a5077ab..73ac46b 100644 --- a/registration/templates/search/indexes/registration/adminregistration_text.txt +++ b/registration/templates/search/indexes/registration/adminregistration_text.txt @@ -1,5 +1,3 @@ {{ object.user.last_name }} {{ object.user.first_name }} {{ object.user.email }} -{{ object.type }} -{{ object.role }} diff --git a/registration/templates/search/indexes/registration/coachregistration_text.txt b/registration/templates/search/indexes/registration/coachregistration_text.txt index 65e6e95..6781817 100644 --- a/registration/templates/search/indexes/registration/coachregistration_text.txt +++ b/registration/templates/search/indexes/registration/coachregistration_text.txt @@ -1,11 +1,4 @@ {{ object.user.first_name }} {{ object.user.last_name }} {{ object.user.email }} -{{ object.type }} -{{ object.professional_activity }} -{{ object.address }} -{{ object.zip_code }} -{{ object.city }} {{ object.phone_number }} -{{ object.team.name }} -{{ object.team.trigram }} diff --git a/registration/templates/search/indexes/registration/studentregistration_text.txt b/registration/templates/search/indexes/registration/studentregistration_text.txt index b1c088e..edb6360 100644 --- a/registration/templates/search/indexes/registration/studentregistration_text.txt +++ b/registration/templates/search/indexes/registration/studentregistration_text.txt @@ -1,16 +1,7 @@ {{ object.user.first_name }} {{ object.user.last_name }} {{ object.user.email }} -{{ object.type }} -{{ object.get_student_class_display }} -{{ object.school }} -{{ object.birth_date }} -{{ object.address }} -{{ object.zip_code }} -{{ object.city }} {{ object.phone_number }} {{ object.responsible_name }} {{ object.reponsible_phone }} {{ object.reponsible_email }} -{{ object.team.name }} -{{ object.team.trigram }} diff --git a/registration/templates/search/indexes/registration/volunteerregistration_text.txt b/registration/templates/search/indexes/registration/volunteerregistration_text.txt index 02ad2a3..73ac46b 100644 --- a/registration/templates/search/indexes/registration/volunteerregistration_text.txt +++ b/registration/templates/search/indexes/registration/volunteerregistration_text.txt @@ -1,5 +1,3 @@ {{ object.user.last_name }} {{ object.user.first_name }} {{ object.user.email }} -{{ object.type }} -{{ object.professional_activity }}