View Source EctoMySQLMatch (Ecto MySQL Match v0.1.0)
Documentation for EctoMySQLMatch
.
Link to this section Summary
Functions
Match against a string on a select list of fields (columns).
Link to this section Functions
Match against a string on a select list of fields (columns).
This requires to have the FULLTEXT index on the selected columns.
example
Example
from(p in "posts", where: match(p.title, "some title"), select: p.title)
from(p in "posts", where: match([p.title, p.description], "some"), select: p.title)