# File /data/home/olly/tmp/xapian-svn-snapshot/tags/1.0.5/xapian/xapian-bindings/ruby/docs/../xapian.rb, line 171
    def matching_terms(document)
      Xapian._safelyIterate(self._dangerous_matching_terms_begin(document), 
                            self._dangerous_matching_terms_end(document)) { |item|
        Xapian::Term.new(item.term, item.wdf)
      }
    end