<p>It depends on the underlying MySQL collation of the database and the tables Craft is searching against.  The MySQL 5.1 rules surrounding this can be found here: <a href="https://dev.mysql.com/doc/refman/5.1/en/case-sensitivity.html" rel="nofollow noreferrer">https://dev.mysql.com/doc/refman/5.1/en/case-sensitivity.html</a></p>

<p>There isn't anything in Craft where you can toggle the case sensitivity of searches.</p>

<p><strong>Update:</strong></p>

<p>Turns out I was completely wrong on this. Case sensitive searches <em>would</em> rely on the database's underlying collation if Craft didn't normalize all search keywords to lowercase first.</p>

CC BY-SA 3.0
2015-02-23T00:49:54.070Z
2016-11-14T19:24:19.570Z
2016-11-14T19:24:19.570Z
Brad Bell
<p>Is Craft's <a href="http://buildwithcraft.com/docs/searching" rel="nofollow">Search</a> case-insensitive?</p>

<p>(And is there a way to toggle case-sensitivity on/off?)</p>

<search>
Is Craft's search() case-insensitive?
# Is Craft's search() case-insensitive?

(Asked by: username_0 on 2015-02-23)

Is Craft's [Search](http://buildwithcraft.com/docs/searching) case-insensitive?

(And is there a way to toggle case-sensitivity on/off?)

**Tags:** search

---

## 1 answers

### Answer by username_1 on 2015-02-23. Score: 4 | Accepted answer

It depends on the underlying MySQL collation of the database and the tables Craft is searching against. The MySQL 5.1 rules surrounding this can be found here: <https://dev.mysql.com/doc/refman/5.1/en/case-sensitivity.html>

There isn't anything in Craft where you can toggle the case sensitivity of searches.

**Update:**

Turns out I was completely wrong on this. Case sensitive searches *would* rely on the database's underlying collation if Craft didn't normalize all search keywords to lowercase first.


---

