Global.helma.Search.Index.prototype.addDocument (doc)
Adds a document to the index.

  • Parameter {helma.Search.Document}:
    doc The document to add to the index.
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
473:   helma.Search.Index.prototype.addDocument = function(doc) {
474:       try {
475:           var modifier = this.getModifier();
476:           modifier.addDocument(doc.getDocument());
477:       } finally {
478:           if (modifier != null) {
479:               modifier.close();
480:           }
481:       }
482:      return;
483:  }