Top N

Description

Select the top-N results (highest score first). This can be used at the end of a strategy to return a maximum number of results. It can also be used within a strategy to take only the top N results for follow-up blocks. For example, in recommendation to use only the latest sales to suggest relevant products.

Input

  • SOURCE [OBJ]: the list of objects to filter

Output

  • RESULT [OBJ]: the top-N objects

Parameters

  • N: the number of results to return