danmunn / redmine_dmsf

Fork of svn repository for redmine_dmsf
GNU General Public License v2.0
413 stars 193 forks source link

Extend Xapian indexing script with further option for db setting #1519

Closed liaham closed 3 months ago

liaham commented 3 months ago

For running xapian indexer it is necessary to configure it to use the same database for indexing as defined in the user interface on plugin settings.

In order to make the configuration of xapian indexer some kind of persistence the command line options in redmine_dmsf/extra/xapian_indexer.rb could be extended by providing a further option for the index database path:

ruby redmine_dmsf/extra/xapian_indexer.rb -d <path/to/my/custom/index/database>

With this additional option it is possible to move the index database outside of redmine root to keep it even after running updates. Furthermore, custom configuration in redmine_dmsf/extra/xapian_indexer.rb won't be overridden when updating this plugin.

liaham commented 3 months ago

I close this PR since it is linked to the master branch what is wrong. I will recreate it with link to devel branch.