SimpleServer gateway to DBC's Opensearch

Overview

The gateway is based on SimpleServer. It accepts RPN Z39.50 queries and
maps them into the query lanaguage that is offered by Opensearch.

Files

* opensearch-gw.pl
the gateway script itself

* etc/dbc-opensearch-gw.cfg
configuration file

* etc/dbc-opensearch-gfs.xml
GFS configuration file

* debian/dbc-opensearch-gw.init
Start-stop script for Debian

* debian/dbc-opensearch-gw.default
Settings for the start-stop script

Installation

make install

OR

Copy the files under ./etc into corresponding places under /etc, and edit
to suit your needs.

Copy the script itself into /usr/sbin/dbc-opensearch-gw.pl, or edit
/etc/defaults/dbc-opensearch to point to some other location where you
have the script.

-------

Run /etc/init.d/dbc-opensearch.gw start, and check that it runs by checking
/var/log/dbc-opensearch.gw.

Set up log rotation as you wish.

Configuration

The script tries first to read /etc/dbc-opensearch-gw.cfg and if that fails,
it tries ./dbc-opensearch-gw.cfg. If even that fails, it runs with hard coded
defaults for everything.

The configuration file tells where the OpenSearch server is, and what parameters
to put in every request. These are misnamed 'constantparams', but in fact they
all can be overridden by adding similar named parameters in the databasename.
Also, any new parameters can be passed the same way. There is a regrettable
limitation, that each name can only occur once. This may give some problems if
trying to override multiple facet names.

See https://opensearch.addi.dk/ for all parameters the back end supports.



