Creating Custom Discovery Locations
In addition to adding content from one of Voyager's standard location types, administrators can add Custom Discovery Locations if they have been previously registered.Â
Before you can add a Custom Location to the Index, you will need to
Create the Custom Location
Register the LocationFactory
Creating Custom Locations
To create a custom location, you will need to implement three classes:
Location - each location must have a unique name.Â
DiscoveryRunner
LocationFactory
Three samples from the Voyager are shown below.
Sample 1 - Earthquakes Location
This is an example that connects to an RSS feed
Sample 2 -Â Autonomy IDOL Location
A custom location for Autonomy IDOL service.
Sample 3 - MyFolder Location
This is an example with a more complex JSON configuration
Registering the LocationFactory
Each
LocationFactory
class needs to be registed with the Java ServiceLoader (for more information, see META-INF/services/voyager.api.discovery.location.LocationFactory)Re-start Voyager so that it reads Registered Custom LocationsÂ
Adding Custom Locations in VoyagerÂ
Once custom locations are registered and Voyager has read them at startup, you can add them to the index.Â