From 1bfd245ace8787031153678e7cbcca72035c1cfb Mon Sep 17 00:00:00 2001 From: Antoine Bluchet Date: Tue, 17 May 2016 18:13:20 +0200 Subject: [PATCH] Case insensitive strategies --- core/filters.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/filters.md b/core/filters.md index f53e13e6074..cc5da8a261b 100644 --- a/core/filters.md +++ b/core/filters.md @@ -20,6 +20,8 @@ The search filter supports exact and partial matching strategies. If the partial strategy is specified, an SQL query with a `WHERE` clause similar to `LIKE %text to search%` will be automatically issued. +If you need case insensitive search, prefix the strategy with the letter `i`, for example `ipartial` will generate the sql clause `WHERE LOWER(property) LIKE LOWER(%binded%)`. Don't forget to use function indexes or you'll hit performance issues! + In the following, we will see how to allow filtering a list of e-commerce offers: ```yaml