Global.helma.Search.Index.prototype.removeDocument (fieldName, fieldValue)
Remove those documents from the index whose field-value with the given name matches the passed value argument.

  • Parameter {String}:
    fieldName The name of the field
  • Parameter {String}:
    fieldValue The value of the field.
  • Returns
    The number of documents that have been deleted.
Sourcecode in /home/hannes/helma/modules/helma/Search.js:
522:   helma.Search.Index.prototype.removeDocument = function(fieldName, fieldValue) {
523:       try {
524:           var modifier = this.getModifier();
525:           var term;
526:           term = new Packages.org.apache.lucene.index.Term(fieldName, fieldValue);
527:           return modifier.deleteDocuments(term);
528:       } finally {
529:           if (modifier != null) {
530:               modifier.close();
531:          }
532:      }
533:      return;
534:  }