PHP Code for OneSearch