@PathParam("table") String table,
@PathParam("index") String index,
@QueryParam("q") final String query,
@QueryParam("depth") final Integer depth,
@QueryParam("size") final Integer limit) throws Exception {
final IndexName indexName = new IndexName(ResourceHelper.parseTableName(request, table), index);
ResourceHelper.checkSchemaAccessible(reqs.securityService, request, indexName.getSchemaName());
return RestResponseBuilder
.forRequest(request)
.body(new RestResponseBuilder.BodyGenerator() {
@Override
public void write(PrintWriter writer) throws Exception {