solr-orbit convert-workload \ --workload-path /path/to/osb-workload \ --output-path /path/to/solr-workload
| Option | Description |
|---|---|
--workload-path | Path to the source OpenSearch Benchmark workload directory |
--output-path | Destination directory for the converted workload |
--force | Overwrite the output directory if it already exists |
The converter produces a copy of the workload in the output directory with the following changes applied:
"indices" keys renamed to "collections" in workload.jsoncreate-index / delete-index operation types replaced with create-collection / delete-collectiondd/MM/yyyy) to ISO 8601A CONVERTED.md file is written to the output directory summarizing what was converted and flagging any items that require manual review.
Converted workload saved to: /path/to/solr-workload Summary: - workload.json: renamed 2 "indices" key(s) to "collections" - operations/default.json: translated 5 search bodies - operations/default.json: converted 3 date range filters - operations/default.json: translated 4 aggregations to facets Items requiring manual review (see CONVERTED.md): - 1 script_score query (not auto-translated) - 2 complex nested aggregations
If the output directory already contains a CONVERTED.md file, the converter will skip it unless --force is passed. This makes re-runs safe after partial edits:
# Re-run without losing manual edits solr-orbit convert-workload \ --workload-path /path/to/osb-workload \ --output-path /path/to/solr-workload \ --force
{: .warning }
Using
--forceoverwrites all files in the output directory, including any manual edits you have made.