0
을 반환 SimpleFunction의 결과에`exists` 적용 나는이 포스트 그레스에서 다음 쿼리 :슬릭 3.0 포스트 그레스 SQL은 : 목록
select name from items where 'keyword' [email protected]@ any (string_to_array(name, ' '));
[email protected]@
운영자가 pg_similarity module
I에서 유사성 운영자가 Slick 3을 통해이 작업을하고 싶습니다. any
기능을 적용해야합니다. 여기에 지금까지 무엇을 가지고 :
// This query does a join on several tables including the items table
// which I want to use for filtering
val similarTo = SimpleBinaryOperator[Boolean]("[email protected]@")
val split = SimpleFunction.binary[String, String, List[String]]("string_to_array")
query = query.filter {
case (_, item, _, _, _) => {
split(item.name.toLowerCase, " "). // ?
// something like .exists(_ => similarTo("keyword", _)
}
}
는 여기