This bit of code is taken from Ryan Bates' Railscast episode 343 on full-text search in PostgreSQL. I would like to understand it, but I can't find anything on the <<-
operator (if it even is an operator). Can someone please point me to somewhere I can learn about this?
rank = <<-RANK
ts_rank(to_tsvector(name), plainto_tsquery(#{sanitize(query)})) +
ts_rank(to_tsvector(content), plainto_tsquery(#{sanitize(query)}))
RANK