search: add AnyCamliType constraint

Change-Id: Ib129d4d365d040e0b12b2e3aa35c38a59ed7bc04