Historique de la page
Sommaire |
---|
L'indexation des tickets et des FAQ est réalisée par la librairie Lucene.
...
The full-text indexing of FAQ and tickets relies on Lucene and is done by the asynchonous ant task update-index (see 03 Administration) using the properties below (set in /properties/config.properties
...
Répertoire d'indexation
).
Properties
Data folder
The directory of the filesystem used to store index dataLe répertoire dans lequel Lucene indexe les documents, défini dans /properties/config.properties :
Bloc de code |
---|
indexing.path=/usr/local/helpdesk/index |
Remarque |
---|
L'utilisateur système qui exécute l'application doit avoir un droit de lecture/écriture sur ce répertoire. |
Mise en place de l'indexation
...
In clustered environements, this folder should be shared between all the application servers. |
Commands
See also: 03 Administration
Updating the index
Updating the index is done by running the ant task update-index, which should be called periodically. For instance on a Unix system from a crontab:
Bloc de code |
---|
00,05,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/local/helpdesk/helpdesk-cron.sh update-index
|
Rebuilding the index
When having a trouble with the index, it is possible to rebuild all the index data by running the ant task rebuild-index:
Bloc de code |
---|
/usr/local/helpdesk/helpdesk.sh rebuild-index
|
Unlocking the index
If the update-index task does not terminate normally, the next call makes the following error:
Bloc de code |
---|
Lucene index is locked, try again later!
|
In this case, make sure that no indexing task is running and run the ant task unlock-index:
Bloc de code |
---|
/usr/local/helpdesk/helpdesk.sh unlock-index
|
...