modifications to use the new cloud search api