use the variable as one of the filters in the sear...
# general
d
use the variable as one of the filters in the search - assuming you’re building the search via code and not just calling a saved search