GR:Gravity/Installation/Server/Post Upgrade Steps/Rebuild Search Index

From Remain Software
Jump to navigation Jump to search

A manual rebuild of the Gravity search index can be run from the Gravity OSGi console (using Telnet or putty). To be able to access the OSGi console you need to setup a Telnet session on the same system the Gravity server is running. Following is an example on how to do this using Telnet on the IBM i. In practice the steps shown below should be almost the same for other operating systems and telnet utilities (for putty users, do not forget to select 'Connection type: Telnet).


  • Start a telnet session using localhost or 127.0.0.1 on the system Gravity server is actively running on, use port 45051 as the port to connect to.

Gr Manual Rebuild Search Index 1.png.png

  • Enter the Gravity command to rebuild the search index: gsolrri

Gr Manual Rebuild Search Index 2.png.png

  • Disconnect from the OSGi console

Gr Manual Rebuild Search Index 3.png.png

The disconnect command expects a response in the form of the letter 'y' for a positive confirmation.

Note. DO NOT enter 'exit' as a means to leave the OSGi console, entering exit will, upon positive confirmation, terminate the Gravity server.

Feedback on the status of the rebuild can only be seen in the Gravity server log, for example:

2017-02-15 13:12:58,400  INFO c.r.g.l.i.c.i.LuceneIndexerService: Start Re-Index
2017-02-15 13:12:58,515  INFO c.r.g.l.i.c.i.LuceneIndexerService: Re-indexing 5 items in batches of 50
2017-02-15 13:13:03,421  INFO c.r.g.l.i.c.i.LuceneIndexerService:       Re-indexed 50
2017-02-15 13:13:03,421  INFO c.r.g.l.i.c.i.LuceneIndexerService: End Re-index

The server log, is located under the Gravity server installation directory at '.data/logs/gravity.log'.