You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see now that it is out of order. This is the order that it is coming out of Elasticsearch from the query that says sort by doc_count. There is a discrepancy between counts because of nested aggregations. It is sorting on the base doc_count , but the real count (and the one displayed on the side) is in field_to_item.doc_count and the result is out of order relative to that field.
I would either need to change the query to Elasticsearch or re-sort the items in the API app.
wkdewey
added a commit
to CDRH/api
that referenced
this issue
Dec 4, 2024
On the Browse by People page (https://cdrhrailsdev.unl.edu/family-letters/en/browse/person.name), the default sort Sort by Count (most first) isn't actually in descending numerical order
For example:
![Screenshot 2024-11-25 at 3 43 00 PM](https://private-user-images.githubusercontent.com/12901264/389711595-91e0a87d-ab85-41dc-ad9d-a03bb98f00f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MzAzNDMsIm5iZiI6MTczOTYzMDA0MywicGF0aCI6Ii8xMjkwMTI2NC8zODk3MTE1OTUtOTFlMGE4N2QtYWI4NS00MWRjLWFkOWQtYTAzYmI5OGYwMGY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDE0MzQwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjYzBlNWM2ZWNkZjI1NmU4MTQ5M2U2ZDMwMzMzNjA0MzFjNTcyZDEwZDJhODg3ODRkYWU4OGMzMWZlMWE0MTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oLI1faLelNL1u3xDB5Y3JsP7u-LqyxuyARbOXpjGY4g)
Sort by Count (least first) exhibits the same problem, just in reverse.
The text was updated successfully, but these errors were encountered: