class PgSearch::Features::Trigram

def conditions

def conditions
  [
    "(#{normalize(document)}) % #{normalize(":query")}",
    {:query => query}
  ]
end

def rank

def rank
  [
    "similarity((#{normalize(document)}), #{normalize(":query")})",
    {:query => query}
  ]
end