Global.helma.Search.Index.prototype.create ()
Creates a new index. This will delete any existing index files in the directory of this index.

Sourcecode in /home/hannes/helma/modules/helma/Search.js:
368:   helma.Search.Index.prototype.create = function() {
369:       try {
370:           // FIXME: IndexWriter is supposed to remove files
371:           // if instantiated with create == true, but for some reason
372:           // it doesn't, so instead use FSDirectory.getDirectory()
373:           // for deletion and then re-create the index segments file
374:           var dir = this.getDirectory().getFile();
375:           Packages.org.apache.lucene.store.FSDirectory.getDirectory(dir, true);
376:           var writer = this.getWriter(true);
377:          return true;
378:      } finally {
379:          if (writer != null) {
380:              writer.close();
381:          }
382:      }
383:      return;
384:  }