Content Type Rollups Parameter

Syntax

This parameter is not yet available

The syntax for the query expansion parameter is:

s.ru=<string>:<integer>,<string>:<integer>,<string>:<integer>

A query string may contain only one s.ru parameter. The default value of this parameter is null. To disable a specific content type rollup, specify 0 as the integer for the specific rollup. There are three content type rollups available at this time: the newspaper rollup, the image rollup, and the reference rollup.


Function

The content type rollup parameter defines which content type rollups to activate and for each one, how many records will be included in the rollup.

Example - Using the s.ru parameter

This query string causes the news, images and reference content type rollups to be activated:
 
  s.q=heart+attack&s.ru=newspaper:3,image:10,reference:3

Response

"rollups": [
   "images" : {
      "position" : <position>,
      [ { Document-Fields }, { Document-Fields }, . . . ]
   },
   "newspapers" : {
      "position" : <position>,
      [ { Document-Fields }, { Document-Fields }, . . . ]
   },
   "references" : {
      "position" : <position>,
      [ { Document-Fields }, { Document-Fields }, . . . ]
   },
]


Try It