Skip to content

Commit

Permalink
avniproject/avni-media#171 | Change subject name search strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed Apr 15, 2024
1 parent 64db3e1 commit 34cd1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/sql/api/searchMedia.sql.st
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ where media.image_url is not null
<if(request.toDate)> and media.created_date_time \<= :toDate <endif>
<if(request.subjectName)> and (<request.subjectNameTokens : {subjectNameToken |
(media.subject_first_name ilike '%<subjectNameToken>%' or media.subject_middle_name ilike '%<subjectNameToken>%' or media.subject_last_name ilike '%<subjectNameToken>%')
}; separator="\n OR ">)
}; separator="\n AND ">)
<endif>
<if(request.subjectTypeNames)> and media.subject_type_name in (:subjectTypeNames) <endif>
<if(request.programNames)> and media.program_name in (:programNames) <endif>
Expand Down

0 comments on commit 34cd1eb

Please sign in to comment.