Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • MySQL database must already exist (e.g. "mappingservicedb").  
    • If no data exists in the database, this tool will clear the indexes.
    • Otherwise, it will index the available data.
  • MySQL database connection parameters must be defined in the properties file specified by "run.config".
  • The file system directory specified by the "hibernate.search.default.indexBase" in the properties file specified by run.config must exist.
  • IMPORTANT: The Tomcat server must not be running while this is runinvoked, otherwise indexes can get corrupted.

...

Indexes are written into the directory specified by the hibernate.search.default.indexBase property in the config. properties file specified by "run.config".

Following are some details about the implementation of this tool:

...

  • run.config - the standard configuration file specified as a -D parameter
  • indexed.objects - optional parameter that allows only some indexes to be rebulit a comma-separated list of objects to reindex (e.g. MapRecordJpa).  If omitted, all indexes are rebuilt.

Samples

Sample command line call of the admin tool to rebuild all indexes:

...