Global.helma.Search.Index.prototype.addIndexes (dir)
Merges the indexes passed as argument into this one.

  • Parameter {org.apache.lucene.store.Directory}:
    dir At least one index director to add to this index.
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
347:   helma.Search.Index.prototype.addIndexes = function(dir /* [, dir[, dir...] */) {
348:       var dirs = java.lang.reflect.Array.newInstance(helma.Search.PKG.store.Directory,
349:     	                                               arguments.length);
350:       for (var i=0;i<arguments.length;i++) {
351:           dirs[i] = arguments[i];
352:       }
353:       try {
354:           var writer = this.getWriter();
355:           writer.addIndexes(dirs);
356:      } finally {
357:          if (writer != null) {
358:              writer.close();
359:          }
360:      }
361:      return;
362:  }