Managing Keyword Indexes

Occasionally you may need to make changes to your index definition and rebuild the index, or perform other index-related tasks. This table lists all the maintenance tasks you can do in Horizon Index Services. It also explains how to start the Search Server.

Task

When should I do this task?

How do I do this task?

Start the Indexer in mass mode

Whenever you need to build the entire index from scratch.

For example, you start the Indexer in mass mode when you build the index for the first time, or to rebuild the index after making changes to the index definition.

The existing index is deleted and a new index is created. This means that keyword searches in Information Portal will be unavailable or incomplete until the build is complete.

If you want to let users search while the index is being built, you can start the Search Server after the Indexer has started processing the first batch of records.

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click startindexserver.bat to start the Index Server.
4 Double-click startmassindexer.bat to start the Indexer in mass mode.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./startindexserver

4 Open a second console window.
5 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

6 At the “#” prompt, enter this command:

./startmassindexer

Start the Indexer in dynamic mode

As needed after the index is built.

The Indexer switches to dynamic mode after building the index in mass mode, so you would need to start the Indexer in dynamic mode only if you had to stop the Indexer for some reason, or if the Indexer crashed.

In dynamic mode, the Indexer updates the index as your library adds, updates, and deletes bib, item, and copy records. The Indexer checks for changes periodically and updates the index accordingly. The wait time between indexing cycles is controlled by the DYNAMIC INDEX SLEEP TIME setting in the Horizon Index Services configuration file. (For instructions on updating the configuration file, see Updating Horizon Index Services Settings .)

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click startindexserver.bat to start the Index Server.
4 Double-click startdynamicindexer.bat to start the Indexer in mass mode.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./startindexserver

4 Open a second console window.
5 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

6 At the “#” prompt, enter this command:

./startdynamicindexer

Stop the Indexer

Whenever you need to stop the Indexer.

For example, you must stop the Indexer before you can rebuild the index in mass mode. You might also stop and restart the Indexer if you are getting errors or if recently cataloged items are not showing up in search results.

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click stopindexer.bat.

The Indexer and Index Server command line windows close.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./stopindexer

The Indexer and Index Server console windows close.

Resume a mass build of the index

If the Indexer is interrupted before it completes a mass build of the index.

As the Indexer builds the index in mass mode, it saves its work periodically. If the Indexer is interrupted for any reason, you can resume the build from the previous save. Only the indexing performed since the previous save is lost.

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click startindexserver.bat to start the Index Server.
4 Double-click resumemassindexer.bat to start the Indexer in mass mode.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./startindexserver

4 Open a second console window.
5 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

6 At the “#” prompt, enter this command:

./resumemassindexer

Build part of the index

When you want to test the indexing without having to build the entire index.

This option deletes the index (if it already exists) and indexes the first 10,000 records in your database.

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click startindexserver.bat to start the Index Server.
4 Double-click startsampleindexer.bat to build a portion of the index.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./startindexserver

4 Open a second console window.
5 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

6 At the “#” prompt, enter this command:

./startsampleindexer

Start the Search Server

After starting the Indexer (in either dynamic or mass mode).

You can run the Search Server while the Indexer is running in mass build mode to let users search a partial index. The index will be searchable after the Indexer completes the first 50,000 records.

You must leave the Search Server running so keyword searches in Information Portal are processed.

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click startsearchserver.bat.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./stopindexer

Stop the Search Server

Whenever you want to stop and restart the Search Server. You must stop the Search Server whenever you want to start the Indexer in mass build mode.

Windows

1 Open Windows Explorer.
2 Go to Horizon Index Services installation directory\win.
3 Double-click stopsearchserver.bat.

The Search Server command line window closes.

UNIX or Linux

1 Open a console window.
2 At the “#” prompt, enter this command:

cd Horizon Index Services installation directory/sun/

3 At the “#” prompt, enter this command:

./stopsearchserver

The Search Server console window closes.

 


© 1998-2017 Sirsi Corporation