3 ms·
I feel like I don't grasp the 'boost' concept. The white paper says: >$boost=XX—is used to alter the ranking of specific results by XX (e.g. $boost=1 would no
by Imnimo 4y ago
I feel like I don't grasp the 'boost' concept. The white paper says:
>$boost=XX—is used to alter the ranking of specific results by XX (e.g. $boost=1 would not alter the ranking, while $boost=2 would make a result two times more important).
But then we have this in the example:
>! Generic boosting
>rust$boost=1,site=rs
So this line is a no-op, because it uses boost=1?
- pythux 4y agoHey, Brave engineer here, In this case it is needed because there is a generic '$discard' rule in the Goggle (which means: discard any result that does not match any other instruction from the Goggle; you can see this as a 'default action' applied to results if they are not caught by any other instruction). Using a 'boost=1' allows you to keep some sites, that you don't necessarily want to boost more than their "natural ranking". We have a bit more info about that in the "Getting Started" guide here: https://github.com/brave/goggles-quickstart/blob/main/getting-started.md#how-can-i-exclude-any-result-not-matched-by-my-goggle https://github.com/brave/goggles-quickstart/blob/main/gettin... I hope that helps!
- nvrspyx 4y agoI think it's the "Generic boosting" comment that might have thrown the parent off. The comment could say something like "Keep these sites with default ranking" instead.
- pythux 4y agoThanks for clarifying, makes sense. I think the comment might predate the switch to boost=1 and was not updated accordingly.