async searchSpecifications(request) {
    const { from, size, scrollTTL, searchBody } = request.getSearchParams();

    if (!isPlainObject(searchBody)) {
      throw kerror.get("api", "assert", "invalid_type", "body.query", "object");
    }

    this.assertNotExceedMaxFetch(size - from);

    const { hits, scrollId, total } = await global.kuzzle.internalIndex.search(
      "validations",
      searchBody,
      { from, scroll: scrollTTL, size },
    );

    return { hits, scrollId, total };
  }
Search for collection validation specifications

@param {Request} request
@returns {Promise.<Object>}