serhiy-bzhezytskyy opened a new pull request, #181: URL: https://github.com/apache/solr-orbit/pull/181
A converted `search_after` kept its sort but lost the values, so the operation fetched the first page instead of the page after them. Solr starts a cursor at given sort values when the `cursorMark` encodes them: Base64 of the JavaBin list of one value per sort clause (`CursorMark#getSerializedTotem`). The converter now: - builds that mark from the values; - appends `id` to the sort in the direction of the last clause; - adds a tie-break value that sorts after (`asc`) or before (`desc`) every id, so documents equal to the values are skipped as OpenSearch skips them. Only `plong` sort fields with non-negative values are carried, the case compared with OpenSearch. Anything else is reported in `CONVERTED.md`. For geonames' three operations the converter now writes the bodies of apache/solr-orbit-workloads#32. On a 1,000,436-document sample, three consecutive pages of each give the same ids in the same order as OpenSearch's `search_after`: 300, 212 (the whole result) and 300. The new tests fail without the change. -- 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]
