Last active 1753036694

Revision ee858d15a565d924aa923dd2869ad52289ccd822

ecto-search-simple-word-similarity.ex Raw
1defp items_search(search) do
2 dynamic(
3 [item],
4 fragment(
5 "word_similarity(?, CONCAT(?, ' ', ?)) > 0.6",
6 ^search,
7 item.name,
8 item.description
9 )
10 )
11 end