RubyFlow The Ruby and Rails community linklog

Mongoid and Aggregation Framework: Get similar elements based on tags, ordered by total number of ma

Sometimes using unwind can be really useful. Here’s an example on how to get similar documents, based on number of equal tags that they have: Mongoid and Aggregation Framework: Get similar elements based on tags,

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in