add search build constraint in controller