Use of numberMatched / numberReturned
The following came up recently in a discussion with @ycespb:
is there a way to present the "numberMatched" obtained somewhere (if available in the response) ? This would give the user some positive feedback that his filtering reduced the number of results (also applies to items search of course). Was there not a black bubble with a white number next to "items" in the past which has been removed ? .
Yes, in principle it's possible, but it needs some further thoughts. Let me quickly explain when the grey bubble is shown (it's still there) and why. The total count of items and catalogs is currently shown only if it's clear what the actual number of entries is. This is by default only the case if all items/catalogs are available without pagination. If this case the client also shows a sort and filter (client-side) functionality, which when also switches the bubble to show two numbers (number of results / total number). From a user-perspective I'd ideall like to show something like (10-20/150) so that it's clear that you are currently looking at the entries 10 - 20 out of 150. Unfortunately, In don't get the information from the reponse. Alternatively I could only show the e.g. 150 (numberMatched), but is this confusing if there are only 10 (numberReturned) shown? Showing (numberReturned / numberMatched) in the bubble is the same for all pages (except maybe the last) and might be confusing, too. So I'm not 100% sure what users would expect and understand here. Any thoughts from your side?
Is implemented in Search, not in normal lists of catalogs/items though.