serhiy-bzhezytskyy opened a new pull request, #193:
URL: https://github.com/apache/solr-orbit/pull/193

   geonames' `append-sorted-no-conflicts` and nyc_taxis' 
`append-sorted-no-conflicts-index-only` run against an unsorted collection and 
report success. Their index settings say `index.sort.field` and 
`index.sort.order`, and the converter dropped them.
   
   The converter now writes a config set for each distinct sort, named 
`<collection>_sorted`, whose merge policy is 
[`SortingMergePolicyFactory`](https://solr.apache.org/guide/solr/latest/configuration-guide/index-segments-merging.html#customizing-merge-policies)
 for that sort, and passes it to the procedure. A sort over a field without doc 
values is not applied, and `CONVERTED.md` says so.
   
   Two changes make the procedure use it. A `create-collection` task in a 
procedure can name its own `configset` and `configset-path`, which the param 
source ignored; the loader resolves the path against the workload directory. 
And the sorted config set has a name of its own: Solr serves a config set that 
is deleted and uploaded again with other content under the same name from its 
cache, so the plain content kept winning on the same node. A delete step 
written above the sorted block deletes the config set that block uploads.
   
   | geonames, 3,000 documents, one segment | documents out of order |
   |---|---|
   | the converter's `geonames_sorted` config set | 0 |
   | the plain `geonames` config set | 1,451 |
   
   Against OpenSearch with the same sort on the same documents, both engines 
store them in the same order, and the 13 documents without `admin1_code` sit at 
the same positions (269 to 271 of 3,000). Solr 10.1.0 and OpenSearch 3.10.0.
   
   Not covered: a sort over a field without doc values, and a config set with a 
merge policy of its own, are left unsorted and reported. The guide does not say 
where documents without the sort field go; measured as above.
   
   Test with:
   ```
   solr-orbit convert-workload --workload-path 
<opensearch-benchmark-workloads>/geonames --output-path /tmp/geonames-solr
   ls /tmp/geonames-solr/configsets
   solr-orbit run --pipeline=benchmark-only --target-hosts=localhost:8983 
--workload-path=/tmp/geonames-solr --test-procedure=append-sorted-no-conflicts 
--test-mode
   curl -s localhost:8983/solr/geonames/config | grep -o 
SortingMergePolicyFactory | head -1
   pytest tests -k "IndexSort or configset"
   ```
   `ls` prints `geonames` and `geonames_sorted`, and pytest `15 passed`. After 
the run, `curl` prints `SortingMergePolicyFactory` (before, nothing), and a 
second run of the procedure succeeds.
   


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