How do I rebulid SourceForge search indexes?

Beginning with SourceForge 4.3 SP1, a utility is included to rebuild the search indexes. This can be done without stopping SourceForge , but any new objects created during this time will not be immediately indexed, but will be queued until after the re-indexing.

  1. First run the following command to stop the indexer:
    touch /usr/local/sourceforge/var/searchIndexes/LOCK_INDEXES
  2. Next, stop SourceForge:
    /usr/local/sourceforge/sourceforge_home/bin/sourceforge-standalone-init.sh stop
  3. Remove the old index files:
    /bin/rm /usr/local/sourceforge/var/searchIndex/*
  4. Restart SourceForge:
    /usr/local/sourceforge/sourceforge_home/bin/sourceforge-standalone-init.sh start
  5. Once this is done, you can run the re-index script:
    /usr/local/sourceforge/sourceforge_home/bin/SearchReindex.sh

After the script completes, everything is queued for reindexing. It will take some time to process the reindex requests. Note: Please see the KB article titled: Alternative Search Index Tool for more information.