    # File lib/chef/solr_query/query_transform.rb, line 44
          def self.transform(data)
            return "*:*" if data == "*:*"
            tree = @@parser.parse(data)
            msg = "Parse error at offset: #{@@parser.index}\n"
            msg += "Reason: #{@@parser.failure_reason}"
            raise Chef::Exceptions::QueryParseError, msg if tree.nil?
            self.clean_tree(tree)
            tree.transform
          end