code: public QueryHits execute(JcrIndexSearcher searcher, SessionImpl session, Sort sort) throws IOException
     {
        if (sort.getSort().length == 0 && matchesAnyChildNode())
        {
           Query context = getContextQuery();
           return new ChildNodesQueryHits(searcher.evaluate(context), session, indexConfig);
        }
        else
        {
           return null;
        }
     }
docs: {@inheritDoc}