Back to main page

$similarity

Concept:

$similarity is used to score contents based on similarity.

As an example, the following query finds products that are similar to iphone:

{
  "from" : "products",
  "orderBy" : {
    "$similarity": {
      "title" : "apple iphone",
      "tags" : "premium ios phone"
    }
  }
}

Format:

    { "$similarity" : Proposition }

See also: