Skip to content

Commit c72741f

Browse files
authored
Make search by keybord case insensitive for cancer study and gene (#11809)
1 parent bb2b6ff commit c72741f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/resources/mappers/clickhouse/cancerstudy/CancerStudyMapper.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@
8989
</if>
9090
<if test="sortAndSearchCriteria.isSearchable()">
9191
<foreach item="item" collection="sortAndSearchCriteria.searchTerm.split(' ')" open="(" separator=") AND (" close=")">
92-
cs.name like CONCAT('%', #{item}, '%') OR
93-
cs.cancer_study_identifier like CONCAT('%', #{item}, '%') OR
94-
type_of_cancer.name like CONCAT('%', #{item}, '%') OR
95-
type_of_cancer.type_of_cancer_id like CONCAT('%', #{item}, '%')
92+
cs.name ilike CONCAT('%', #{item}, '%') OR
93+
cs.cancer_study_identifier ilike CONCAT('%', #{item}, '%') OR
94+
type_of_cancer.name ilike CONCAT('%', #{item}, '%') OR
95+
type_of_cancer.type_of_cancer_id ilike CONCAT('%', #{item}, '%')
9696
</foreach>
9797
</if>
9898
</where>

src/main/resources/org/cbioportal/legacy/persistence/mybatis/GeneMapper.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</if>
2727
<if test="keyword != null">
2828
<foreach item="item" collection="keyword.split(' ')" open="(" separator=") AND (" close=")">
29-
gene.hugo_gene_symbol like CONCAT('%', #{item}, '%')
29+
gene.hugo_gene_symbol ilike CONCAT('%', #{item}, '%')
3030
</foreach>
3131
</if>
3232
</where>

0 commit comments

Comments
 (0)