Skip to main content

BoostingFilter

This filter can be used in a search pipeline.

  • the filter load a boosting config and apply the boosting if the condition is matching

https://qsc-dev.quasiris.de/console/search/search/demo/trendware-tbl?tab=Pipeline

!!com.quasiris.qsf.pipeline.Pipeline
id: search-pipeline
timeout: 4000
filterList:
- !!com.quasiris.qsc.search.service.boosting.BoostingFilter
active: true
tenant: {{ tenant }}
code: query-boostings
id: boostingFilter

query-boosting config

https://qsc-dev.quasiris.de/console/config/demo/query-boostings

  • name: the name of the rule
  • comment: a comment
  • priority: if multiple rules are matching, the rule with the highest priority is applied
  • active: true | false - to easily enable or disable a rule
  • condition: the rule is applied if the condition is matching
    • jexl: rule type
  • filters: this filters must match to apply the boost
  • boost: the boost to apply
{
"rules": [
{
"name": "accessory",
"comment": "boost accessory",
"priority": 1,
"active": true,
"condition": "jexl:c.hasTag('__label_accessory')",
"filters": [
{
"id": "infoType",
"values": [
"Zubehör"
]
}
],
"boost": 1.5
}
]
}