Using overlay rwm to rewrite search base depending on search filter