# Preload dataset (optional)

In certain cases, a pre-built dataset is also shipped together with the Terminology Server. This is to ease the initial setup procedure and get going fast.&#x20;

{% hint style="info" %}
This method is only applicable to deployments where the Elasticsearch cluster is co-located with the Terminology Server.

To load data into a managed Elasticsearch cluster, there are several options:

* use [cross-cluster replication](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/xpack-ccr.html)
* use [snapshot-restore](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/snapshot-restore.html)
* use Snow Owl to rebuild the data to the remote cluster
  {% endhint %}

These datasets are the compressed form of the Elasticsearch data folder which follows the same structure. Except for having a top folder called `indexes` . This is the same folder as in `./snow-owl/resources/indexes` . So to be able to load the dataset one should just extract the contents of the dataset archive to this path.

```sh
tar --extract \
    --gzip \
    --verbose \
    --same-owner \
    --preserve-permissions \
    --file=snow-owl-resources.tar.gz \
    --directory=/opt/snow-owl/resources/

chown -R 1000:0 /opt/snow-owl/resources
```

{% hint style="warning" %}
Make sure to validate the file ownership of the indexes folder after decompression. Elasticsearch requires UID=1000 and GID=0 to be set for its data folder.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.b2ihealthcare.com/snow-owl/9.x/setup-and-administration/configuration/preload-dataset-optional.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
