# Advanced Configuration
The content added to a dataset comes in all shapes and forms, not all content is split equally among categories, price ranges, attributes. In some scenarios you may want more control over the recommendations to prioritize certain content over other. This section describes some of the options available with examples of use cases.
You can change the importance of content across the dataset by applying a
weight function to the most relevant results. This can lead to a change in the order of the results, new content appearing or existing content disappearing from the results (compared to when not using the feature).
weight function has the following format:
|field||String||yes||Metadata field name available in the dataset (E.g. price, category). Allowed metadata field types: number, string.|
|level||Number||yes||Number between |
|range||Number||no||The relative range between the current selected item and other items in absolute value. The weight function will be applied only on matching items.|
|rangePercentage||String||no||The relative range between the current selected item and other items as a percentage.|
|method||String||no||Use value |
# Use Cases
# Similar price range
Sometimes a dataset can contain both affordable and luxury products. Users that visit a product page for an affordable product may not want / expect to see luxury products in the recommendations. With weighting you can make sure outliers are not suggested and / or moved towards the back in the list of results.
w=price:0.5|200||range to upweight all items based on
price with a level of
0.5. All items that have a price between the price of the current item ±
200 will have their importance increased.
w=price:0.7||10|range to upweight all items based on
price with a level of
0.7. All items that have a price between the price of the current item ±
10% will have their importance increased.
# More from the same category
Sometimes you need to offer recommendations for products that are part of smaller categories and the current results don't include all the items from the current item's category.
w=category:0.9 to upweight same
category products by a factor of