src/wcmf/lib/search/impl/LuceneSearch.php
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);
    }
  }
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);
    }
  }
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 ) ; } }
Set the path to the search index.
@param $indexPath Directory relative to main
Set the path to the search index .