serhiy-bzhezytskyy opened a new pull request, #194: URL: https://github.com/apache/solr-orbit/pull/194
A converted config set's `schema.xml` starts with `<schema name="auto-generated" version="1.6">`. The schemas in solr-orbit-workloads carry the collection's name, `geonames` and `nyc_taxis`, so a converted config set differs from a shipped one in that line. `generate_schema_xml` now takes the schema's name, and the converter passes the collection's. A caller that gives none still gets `auto-generated`. | converted from upstream | `<schema name=...>` before | after | solr-orbit-workloads | |---|---|---|---| | geonames | `auto-generated` | `geonames` | `geonames` | | nyc_taxis | `auto-generated` | `nyc_taxis` | `nyc_taxis` | Not covered: the rest of the file still differs from the shipped schemas, in comments and layout. Test with: ``` solr-orbit convert-workload --workload-path <opensearch-benchmark-workloads>/geonames --output-path /tmp/geonames-solr grep -o '<schema name="[^"]*"' /tmp/geonames-solr/configsets/geonames/schema.xml pytest tests/unit/solr -k "schema_is_named or SchemaName" ``` `grep` prints `<schema name="geonames"` (before: `auto-generated`), and pytest `2 passed`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
