docs: function(klass, query, options) {
        if(isObject(query)) query = JSON.stringify(query);
        options = opts(this, options);
        options.version = 'v2';
        return new APICall({
          action: 'class/' + klass + '/elasticsearch',
          type: 'POST',
          data: query,
          options: options
        });
      }