Solr Index

The eBook Search uses a dedicated Solr index. Within the Solr index, each instance has its own Solr core. The Solr index is build and updated using the following two sources of information:

  • the SFX databases (both global and local)
  • the monograph RSI (for activation information)

Before the Solr index can be used, Solr should be up and running in the SFX installation, and a Solr core should exist for the global instance and each local instance where the eBook Search will be used.

Select 14 Solr index (only by sfxglb41) to create or remove a Solr core. The following is displayed:

Solr index maintenance

1 Create a Solr core

2 Remove a Solr core

3 Create Solr cores for all instances

  • During the initial set-up, it is recommended to create a Solr core for all instances in the SFX installation.
  • A Solr restart is required after creating or removing a Solr core if you choose to not do one automatically.

Select 1 Create a Solr core to create a Solr core. The following is displayed:

This option allows to create a Solr core for an instance. In case a core is created, the Solr service should be restarted.

Would you like the Solr service to be restarted automatically? [y/n] y

Please enter the instance name for which you want to create a Solr core: SST04

In case a core for the instance already exists, would you like to recreate it or skip its creation?

Note that recreating the Solr core will remove all its data.

Type (r) for recreating the core or (s) for skipping the core creation: [s] r

Starting to create new core and update configuration...

Adding core to Solr...

Core added!

Adding entry to Jetty configuration...

File updated!

Adding entry to Web configuration...

File updated!

done!

If a core already exists for an instance, it is possible to either skip the core creation or recreate the core. It is recommended to skip the core creation unless there is a serious problem with the Solr core that requires it to be rebuilt. This is because recreating a Solr core for an instance removes all its data, which means the eBook Search index needs to be rebuild using a complete build. This may take a while for instances with a lot of eBook activations.

Select 2 Remove a Solr core to remove a Solr core. The following is displayed:

Please enter the instance name for which you want to remove the Solr core: sfxtst41

Starting remove core for user sfxtst41...

Dropping Solr core for user sfxtst41...

Core unloaded!

Removing record from Jetty configuration for user sfxtst41...

Record removed!

Removing record from Web configuration for user sfxtst41...

Record removed!

done!

Only run this option for instances where SFX-Verde publishing is not set up, and the eBook Search interface is not in use.

Select 3 Create Solr cores for all instances to create a Solr core for all of your SFX instances. The following is displayed:

This option allows to create Solr cores for all instances. In case a core is created, the Solr service should be restarted.

Would you like the Solr service to be restarted automatically? [y/n] y

This option will create a Solr core for each of the instances in the SFX installation: sfxlcl41, sfxtst41

In case a core for an instance already exists, would you like to recreate it or skip its creation?

Note that recreating a Solr core for an instance will remove all its data.

Type (r) for recreating the core or (s) for skipping the core creation: [s] s

You selected to skip a core creation in case it already exists.

Are you sure you want to continue? [y/n] y

Working on instance: sfxlcl41

Starting to create new core and update configuration...

Adding core to Solr...

Core added!

Adding entry to Jetty configuration...

File updated!

Adding entry to Web configuration...

File updated!

done!

Working on instance: sfxtst41

Starting to create new core and update configuration...

Adding core to Solr...

Core with name sfxtst41 already exists!

Skipping core creation

Restarting solr...

Stopping solr...

Done!

Starting solr...

Done!