Maximum Topics Parameter

Syntax

The syntax for the query expansion parameter is:

s.rec.topic.max=<integer>

A query string may contain only one s.rec.topic.max parameter. The default value of this parameter is  .


Function

The maximum topics parameter defines the maximum number of topics will be returned in the search result. Currently, this parameter only supports 0 or 1 as input.

Example - Using the s.rec.topic.max parameter

This query string enables the topic service to return a maximum of 1 topic for the search:
 
  s.q=heart+attack&s.rec.topic.max=1

Try It