code: public QueryHits execute(JcrIndexSearcher searcher,
                               SessionImpl session,
                               Sort sort) throws IOException {
          if (sort.getSort().length == 0) {
              try {
                  return new NodeTraversingQueryHits(
                          session.getRootNode(), true, indexConfig);
              } catch (RepositoryException e) {
                  throw Util.createIOException(e);
              }
          } else {
              return null;
          }
      }
docs: {@inheritDoc}