rem: modifier.addDocument(docs[i]); 
add: modifier.addDocument(docs[i].getDocument()); 
context: helma.Search.Index.prototype.addDocuments = function(docs, mergeFactor) {    try {        var modifier = this.getModifier();        if (mergeFactor) {            modifier.setMergeFactor(mergeFactor);        }        if (docs instanceof java.util.Hashtable || docs instanceof java.util.Vector) {            var e = docs.elements();            while (e.hasMoreElements()) {                modifier.addDocument(e.nextElement().getDocument());            }        } else if (doc instanceof Array) {            for (var i=0;i<docs.length;i++) {                modifier.addDocument(docs[i]);            }        }    } finally {        if (modifier != null) {            modifier.close();        }    }    return;};
meta: 2504	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2504/cd05f1679b99c384278e2ea30a39494334ce834b/Search.js/buggy/helma/Search.js