Boost data based on condition from client side

I am using instant search
i want to ask how we can boost for example specific brand when i am seeing it

for example if i have products in brands (A,B,C)
if my user in Brand B Page i want to make brand B products showing in the top of search results and after them the other brands
i dont want to filter only B i need all the items but B brand at top

and if i am on Brand C page i will see Brand C products at top and the other brands below them