hack to prevent search in db when a complex query such as x=y.z is issued