From a7d455eeb1802503a761d40cecd8a3478bacc0af Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 15 Oct 2020 16:44:10 +0200 Subject: [PATCH] Add indexed fields --- .../search/indexes/participation/participation_text.txt | 2 ++ .../templates/search/indexes/participation/team_text.txt | 2 ++ .../templates/search/indexes/participation/video_text.txt | 1 + .../search/indexes/registration/adminregistration_text.txt | 4 ++++ .../search/indexes/registration/coachregistration_text.txt | 5 +++++ .../indexes/registration/studentregistration_text.txt | 6 ++++++ 6 files changed, 20 insertions(+) create mode 100644 apps/participation/templates/search/indexes/participation/participation_text.txt create mode 100644 apps/participation/templates/search/indexes/participation/team_text.txt create mode 100644 apps/participation/templates/search/indexes/participation/video_text.txt create mode 100644 apps/registration/templates/search/indexes/registration/adminregistration_text.txt create mode 100644 apps/registration/templates/search/indexes/registration/coachregistration_text.txt create mode 100644 apps/registration/templates/search/indexes/registration/studentregistration_text.txt diff --git a/apps/participation/templates/search/indexes/participation/participation_text.txt b/apps/participation/templates/search/indexes/participation/participation_text.txt new file mode 100644 index 0000000..17f697d --- /dev/null +++ b/apps/participation/templates/search/indexes/participation/participation_text.txt @@ -0,0 +1,2 @@ +{{ object.team.name }} +{{ object.team.trigram }} \ No newline at end of file diff --git a/apps/participation/templates/search/indexes/participation/team_text.txt b/apps/participation/templates/search/indexes/participation/team_text.txt new file mode 100644 index 0000000..d673407 --- /dev/null +++ b/apps/participation/templates/search/indexes/participation/team_text.txt @@ -0,0 +1,2 @@ +{{ object.name }} +{{ object.trigram }} diff --git a/apps/participation/templates/search/indexes/participation/video_text.txt b/apps/participation/templates/search/indexes/participation/video_text.txt new file mode 100644 index 0000000..0f1a368 --- /dev/null +++ b/apps/participation/templates/search/indexes/participation/video_text.txt @@ -0,0 +1 @@ +{{ object.link }} diff --git a/apps/registration/templates/search/indexes/registration/adminregistration_text.txt b/apps/registration/templates/search/indexes/registration/adminregistration_text.txt new file mode 100644 index 0000000..44ed471 --- /dev/null +++ b/apps/registration/templates/search/indexes/registration/adminregistration_text.txt @@ -0,0 +1,4 @@ +{{ object.user.last_name }} +{{ object.user.first_name }} +{{ object.type }} +{{ object.role }} diff --git a/apps/registration/templates/search/indexes/registration/coachregistration_text.txt b/apps/registration/templates/search/indexes/registration/coachregistration_text.txt new file mode 100644 index 0000000..e9c5fff --- /dev/null +++ b/apps/registration/templates/search/indexes/registration/coachregistration_text.txt @@ -0,0 +1,5 @@ +{{ object.user }} +{{ object.type }} +{{ object.professional_activity }} +{{ object.team.name }} +{{ object.team.trigram }} diff --git a/apps/registration/templates/search/indexes/registration/studentregistration_text.txt b/apps/registration/templates/search/indexes/registration/studentregistration_text.txt new file mode 100644 index 0000000..884f15b --- /dev/null +++ b/apps/registration/templates/search/indexes/registration/studentregistration_text.txt @@ -0,0 +1,6 @@ +{{ object.user }} +{{ object.type }} +{{ object.student_class }} +{{ object.school }} +{{ object.team.name }} +{{ object.team.trigram }}