Page MenuHomeSoftware Heritage

"sort_by" in the search QL does not support pagination
Closed, MigratedEdits Locked

Description

Go to https://archive.softwareheritage.org/browse/search/?q=origin+%3A++%22foo%22+sort_by+%3D+%5Bpublished%5D&with_visit=true&with_content=true&use_ql=true and click "Next"

This crashes with:

Error: <RemoteException 500 RequestError: [400, 'search_phase_execution_exception', {'error': {'root_cause': [{'type': 'illegal_argument_exception', 'reason': 'search_after has 2 value(s) but sort has 3.'}], 'type': 'search_phase_execution_exception', 'reason': 'all shards failed', 'phase': 'query', 'grouped': True, 'failed_shards': [{'shard': 0, 'index': 'origin-v0.11', 'node': 'aWtTAVJtTf2Pw8xLPGQt3w', 'reason': {'type': 'illegal_argument_exception', 'reason': 'search_after has 2 value(s) but sort has 3.'}}], 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'search_after has 2 value(s) but sort has 3.', 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'search_after has 2 value(s) but sort has 3.'}}}, 'status': 400}]>