All rek.ai parameters
A complete list of the parameters you can add to your recommendations for filtering etc.
Prediction
Name | Description |
---|---|
addcontent | Whether content should be added to the json result |
nrofhits | Set the number of hits to retrieve |
Filter parameters
Name | Description |
---|---|
allowedlangs | If a recommendation should only recommend pages of a certain language. |
domain | If a project has several domains in the same model, the parameter controls a filtering on domain |
excludechildnodes | When filtering using userootpath, we can set this flag to true to avoid including direct subpages to the current page. |
excludetree | Whether one or more branches of the site should be excluded from the recommendations |
filter_exclude_onpagelinks | If the existing links on the page are not to be recommended |
intitle | A string that must be included in the title for a hit to be recommended. Used in autocomplete. |
ldjsonfilter.[parameter] = value | Possibility to filter on arbitrary parameter->value combination that exists in your LD+JSON. |
maxpathdepth | The maximum depth of the path page has |
minpathdepth | The minimum depth the path page has |
notdomain | If a project has several domains in the same model, the parameter controls a filtering on domains that should not be displayed |
notpagetype | Determines which type of pages should not be recommended |
pagetype | Determines which type of pages should be recommended |
rootpathlevel | If userootpath is set to true , this parameter controls the number of parts of path that control the filter. |
subtree | If only one or more part of the site is to be recommended |
tags | The tags you can enter per Question & Answer in the Dashboard can be filtered on the recommendation. |
term | Whether a word or phrase must be included in the page title or introduction |
userootpath | If the recommendation is to be filtered based on part of the current URL-path that the visitor is on. |
Render
Name | Description |
---|---|
addstripes | Adds a class that creates every other color in lists |
headerfontclass | H-tag class for the header |
headerheadinglevel | H-level for the header above the recommendations. If set to 0, no H tag is used |
headerid | ID of the header |
headertext | A heading that is printed above the recommendations. Ex: “Recommended reading” |
hideimage | Make sure that the image is not rendered in the function that writes content |
listcols | Number of columns 1,2 or 3. Add data-renderstyle="list" to make it work with the columns. |
questionsfirst | Whether the questions in a search result should be placed before the pages |
renderstyle | If and how should the recommendations be rendered: list, content, advanced, tree or sort |
stripecolor | What color should the biannual coloring be |
styling | If the rendering of the recommendations is to use a CSS framework, the name of the framework can be specified here |
titlemaxlength | If the page's h1 should be used when rendering instead of the page title |
useh1forcontent | If the page's h1 should be used when rendering instead of the page title |
Advanced
Name | Description |
---|---|
advanced_mockdata | This is so that you can see what the recommendations look like |
callback | The name of a function that will be executed instead of rendering |
ignorelabels | If a project uses labels, can skip using these for a specific recommendation. |
nrofcontextualhits | Whether a specific number of recommendations should be based on context. |
projectid | Unless the default value for the project is to be used |
rt | Specifies returntype: default is JSON, svauto = autocomplete for SiteVision |