Static

The Static module assigns a static or constant data-specific value to each search result, depending on the type of search operation performed and depending on optional parameters that can be passed to the module.

For record search operations, the first parameter to the module specifies an attribute, which will define the sort order assigned by the module. The second parameter can be specified as ascending or descending to indicate the sort order to use for the specified attribute.

For example, using the module Static(Availability,descending) would sort result records in descending order with respect to their assignments from the Availability standard attribute. Using the module Static(Title,ascending) would sort result records in ascending order by their Title standard attribute assignments.

In a catalog application, setting the static module by Price, descending leads to more expensive products being displayed first.

For value search, the first parameter can be specified as nbins, depth, or rank:
  • Specifying nbins causes the static module to sort result values by the number of associated records in the full data set.
  • Specifying depth causes the static module to sort result values by their depth in the managed attributes hierarchy.
  • Specifying rank causes values to be sorted by the ranks assigned to them for the application.