When searching text fields, in addition to the parameters that string syntax accepts, they also accept the [code]*_matches[/code] parameter. When a string contains the wildcard "*", then it is treated the same as a [code]*_like[/code] parameter. Otherwise it searches the lexical patterns for a match. This follows Postgres's text matching.
See also
External links
- Postgres article on regular expressions
- Postgres article on text matching
- https://github.com/danbooru/danbooru/blob/master/app/logical/concerns/searchable.rb