public function setIndexPath($indexPath) {
    $fileUtil = new FileUtil();
    $this->indexPath = $fileUtil->realpath(WCMF_BASE.$indexPath).'/';
    $fileUtil->mkdirRec($this->indexPath);
    if (!is_writeable($this->indexPath)) {
      throw new ConfigurationException("Index path '".$indexPath."' is not writeable.");
    }
    if (self::$logger->isDebugEnabled()) {
      self::$logger->debug("Lucene index location: ".$this->indexPath);
    }
  }