unranked

Type: boolean
Default: false
Context: questions

About this parameter

In some cases we want maximum speed and the results in the same order for each recommendation. In that case, data-unranked can be used. Currently, the parameter can only be used in conjunction with Question and Answers recommendations.

This parameter requires that either data-subtree (opens in a new tab) or data-currentpagequestions (opens in a new tab) also is specified. When data-subtree is used together with data-unranked, it must be scoped to exactly one page, not to a whole branch or section of the site.

Usage examples

Use currentpagequestions to automatically scope the results to the page the visitor is currently viewing:

    <div class="rek-prediction" data-currentpagequestions="true" data-unranked="true"></div>

Use the exact-match syntax described on the subtree (opens in a new tab) page, a caret and dollar sign around the path, to scope subtree to that single page:

    <div class="rek-prediction" data-subtree="^/science/$" data-unranked="true"></div>

Do not use data-subtree with data-unranked to match a whole branch or multiple pages, for example:

data-subtree="/science/"
data-subtree="/science/,/accommodation/"