message: Improve search
  Closes:
  Closes:
  Closes:
diff: @@ -242,8 +242,11 @@ fn get_search_results(conn: &Connection,
  ts_rank_cd(crates.content, to_tsquery($1)) AS rank
  FROM crates
  INNER JOIN releases ON crates.latest_version_id = releases.id
  - WHERE crates.content @@ to_tsquery($1)
  - ORDER BY rank DESC
  + WHERE crates.name LIKE concat('%', $1, '%')
  + OR crates.content @@ to_tsquery($1)
  + ORDER BY crates.name = $1 DESC,
  + crates.name LIKE concat('%', $1, '%') DESC,
  + rank DESC
  LIMIT $2 OFFSET $3",
  &[&query, &limit, &offset]) {
  Ok(r) => r,
  