Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):Elasticsearch: 7.17.29
OpenSearch: 2.19.5
OpenSearch Dashboards: ( not using)
JDK: 17
OS: ( Windows/Linux)
Browser: (Chrome)
Describe the issue:
We are migrating from Elasticsearch 7.17.29 to OpenSearch 2.19.5.
As per OpenSearch documentation, index compatibility is supported from 6.8 up to Elasticsearch 7.10. However, in our case, we performed the following:
- Copied the
path.datadirectory from Elasticsearch 7.17.29 - Started OpenSearch 2.19.5 using that data
- OpenSearch started successfully
- Indices are accessible and searchable without errors
Example:
“version.created”: “7172999” (Elasticsearch 7.17 index)
Basic queries like _search are working correctly:
- No shard failures
- Documents are returned as expected
This creates confusion regarding whether reindexing is actually required.
Configuration:
Migration approach:
- Source: Elasticsearch 7.17.29
- Target: OpenSearch 2.19.5
- Method used: Direct copy of
path.data(no reindex performed)
Cluster behavior:
- OpenSearch starts without errors
- Indices are in green state
- Queries work as expected
We are not using features introduced after Elasticsearch 7.10 (to the best of our knowledge).
Relevant Logs or Screenshots:
Index version check:
GET _all/_settings?filter_path=**.version.created
Output:
“version.created”: “7172999”
================================
Search test:
GET /as012026/_search
Result:
- hits returned successfully
- _shards.failed = 0
======================================
info:
GET /
Response:
{
“name”: “AlphaCentauri”,
“cluster_name”: “acqu”,
“version”: {
“distribution”: “opensearch”,
“number”: “2.19.5”,
“lucene_version”: “9.12.3”,
“minimum_wire_compatibility_version”: “7.10.0”,
“minimum_index_compatibility_version”: “7.0.0”
}
}
Observation:
OpenSearch reports minimum index compatibility version as 7.0.0, while our index was created in Elasticsearch 7.17. This adds to the confusion since the index is working despite documentation mentioning compatibility up to 7.10.
(No errors observed in logs so far)
Questions:
- Is reindexing mandatory when migrating from Elasticsearch 7.17.x to OpenSearch 2.19.5?
- Is copying
path.dataa supported migration approach, or is this considered unsafe? - Should reindexing be done:
- From Elasticsearch → OpenSearch (recommended approach?)
- Or within OpenSearch after copying data?
- Are there risks related to:
- Future OpenSearch upgrades
- Lucene compatibility
- Snapshot/restore or shard recovery?
- If we are not using features beyond Elasticsearch 7.10, does that make this approach valid?
I want to confirm whether the current working setup is officially supported or just incidental behavior.
Best regards,
Ajay.
