Elasticsearch in GG-CE
GRIN-Global stores the primary data in a relational database. The relational database allows for exact querying, but is not well suited for full-text search across thousands of records.
GG-CE uses Elasticsearch (ES) (https://www.elastic.co) for full-text search over Accession
and Inventory
data.
Out of the box, GG-CE includes an embedded ES instance and no additional configuration is required. The embedded instance stores the index data in ${DATA_DIR}/elastic
folder (e.g. /data/gringlobal/elastic
.
External ES
Depending on the size of the database, the ES can use quite a lot of disk space, memory and disk space. It is sensible to run ES as its own service, independent of GG-CE. See https://www.elastic.co/guide/en/elasticsearch/reference/6.8/docker.html
GG-CE Server can then be configured to use the external ES by providing a list of ELASTICSEARCH_CLUSTER_NODES
(or elasticsearch.cluster.nodes
):
docker -e 'ELASTICSEARCH_CLUSTER_NODES=http://someip:9200,http://someother:9200' ...
GG-CE Elastic admin
The Elastic admin page in GG-CE allows the administrator to:
- Reindex selected entity
- Delete obsolete indexes
- Move aliases