OrderByDefinition

  • field
    Type: string · Field
    required

    Name of the field to order by. You can sort by any numeric and boolean fields in your Product catalog, or use one of any special fields:

    • _personalization_score: the score that rates the degree of affinity between a pair of user and product from Miso's personalization algorithm.
    • _search_score: the score that rates the degree of search keyword matches to a product's catalog.
    • _boosting_score: the score that rates the degree a Product is boosted by your boosting query.
  • default_value
    Type: number · Default Value

    The default value to use when the scores do not exist for a Product

  • geo
    Type: object · Geo

    The geo point to compute the _geo_distance variable against. This is only required if _geo_distance is present in the formula.

    • lat
      Type: number · Lat
      min:  
      -90
      max:  
      90
      required

      Latitude of the center point, should between 90 and -90

    • lon
      Type: number · Lon
      min:  
      -180
      max:  
      180
      required

      Longitude of the center point, should between 180 and -180

  • order
    enum
    values
    • desc
    • asc
  • tie_breaker
    Type: object · Tie Breaker
    • threshold
      Type: number · Threshold
    • type
      enum
      const:  
      relative_difference
      values
      • relative_difference