From 34cd1ebee3025d4b49232404e030b4595c5bdc9d Mon Sep 17 00:00:00 2001 From: Joy A Date: Fri, 12 Apr 2024 11:34:59 +0530 Subject: [PATCH] avniproject/avni-media#171 | Change subject name search strategy --- src/main/resources/sql/api/searchMedia.sql.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/sql/api/searchMedia.sql.st b/src/main/resources/sql/api/searchMedia.sql.st index 374f175..213f49e 100644 --- a/src/main/resources/sql/api/searchMedia.sql.st +++ b/src/main/resources/sql/api/searchMedia.sql.st @@ -41,7 +41,7 @@ where media.image_url is not null and media.created_date_time \<= :toDate and (%' or media.subject_middle_name ilike '%%' or media.subject_last_name ilike '%%') - }; separator="\n OR ">) + }; separator="\n AND ">) and media.subject_type_name in (:subjectTypeNames) and media.program_name in (:programNames)