extract IndexClient interface
make search method a plain query so it works using REST