Repository tools command to rebuild text indexes
Use the rebuildTextIndices command to rebuild the database text indexes.
Purpose
The Jazz®
Team Server manages a
directory outside the database that stores all data that is necessary to process full text queries.
The location of the directory is configured in the teamserver.properties
file.
Thus, when the rebuildTextIndices command is run, the full text directory is
created in the location as stated in the properties file.
With this command, it is possible to create this directory and index all artifacts from the database again to make them searchable with full text queries. The following list is some scenarios where creating the database and indexing artifacts again might be necessary:
- The server moved to a new location and the full text directory was not copied, thus the full text directory must be re-created.
- A new Jazz
Team Server is set up
with an existing database, and there is a new
teamserver.properties
file and thus, a new location for the full text directory. - You run a quick search for a work item or an artifact and no search result is returned.
- You run a full text search for a work item or an artifact and an error occurs.
- Go to the JazzInstallDir/server directory and open repotool-app for editing, where app is ccm or qm.
- Search for
set DEFINE=%DEFINE_INIT%
and after the line add the following lines:set DEFINE=%DEFINE% "-Dcom.ibm.team.repository.restrictStackTraceLineLength=false" set DEFINE=%DEFINE% "-Dcom.ibm.team.repository.stackTraceLineLength=2000"
- When this system property is set to true, any lines longer than 2000 characters will be skipped
during indexing. To adjust the default character limit, change the value of
-Dcom.ibm.team.repository.stackTraceLineLength
to an integer. If the value is set to 0, indexing will be skipped.
Parameters
Attribute | Description | Required | Default |
---|---|---|---|
teamserver.properties | The file system path to the teamserver.properties file. |
No | conf/application/teamserver.properties where application is jts, ccm, rm, qm, gc, dcc, or relm. |
logFile | Path to the log file. | No | repotools-application_rebuildTextIndices.log where application is jts, ccm, rm, qm, gc, dcc, or relm. |
Example
- IBM® Engineering Workflow Management (Change and Configuration Management application): repotools-ccm
- IBM Engineering Requirements Management DOORS® Next (Requirements Management application): repotools-rm
- IBM Engineering Test Management (Quality Management application): repotools-qm
- Global Configuration Management: repotools-gc
- Data Collection Component: repotools-dcc
- IBM Engineering Lifecycle Optimization - Engineering Insights: repotools-relm
Open a command prompt and enter this command:
cd C:\Program Files\IBM\JazzTeamServer\server\ repotools-jts.bat -rebuildTextIndices teamserver.properties=conf\jts\teamserver.properties
Open a command line and enter this command:
cd opt/IBM/JazzTeamServer/server/ ./repotools-jts.sh -rebuildTextIndices teamserver.properties=conf/jts/teamserver.properties