serhiy-bzhezytskyy opened a new issue, #160:
URL: https://github.com/apache/solr-orbit/issues/160

   ### Description
   `convert-workload` translates a search body only when it has a `query` 
object. A body that has only `aggs` (or only `size`) is written to the 
converted workload unchanged, in OpenSearch DSL, with no warning.
   
   ### To reproduce
   ```
   solr-orbit convert-workload --workload-path 
<opensearch-benchmark-workloads>/geonames --output-path out/geonames
   ```
   In `out/geonames/operations/default.json`, `country_agg_uncached`, 
`country_agg_cached` and `numeric-term-cardinality-agg-high` come out as 
`{"size": 0, "aggs": {"country_population": {"terms": {"field": 
"country_code.raw"}, ...}}}`, which Solr's `/query` endpoint rejects. The 
solr-orbit-workloads versions of these three are hand-written.
   
   ### Expected behavior
   The body is translated like any other: `query: "*:*"`, `limit`, `facet`.
   
   ### Host / Environment
   solr-orbit main e37cc020.
   


-- 
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]

Reply via email to