is there anyway to not show the exact amount of hi...
# community-help
a
is there anyway to not show the exact amount of hits in typesense?
k
Are you talking about the
out_of
field in response?
a
message has been deleted
i used the algolia typesense adapters and it shows the number of hits
k
This is the facet counts?
I'm not sure if the facet counts can be disabled. @Jason Bosco can answer later.
a
ye this is facet counts. alright thank you
s
Is โ€˜out_ofโ€™ the total number of documents in the collection ?
k
Correct. It's not documented at the moment. We've not decided if it is a useful number to expose in the response. We've concerns of privacy so will likely not have it in future.
s
Really useful. I was using it as total to know whether to request more hits for infinite scroll
k
Oh cool. The primary worry I have is that reveals the size of your "inventory", which might not be ideal in certain contexts. Perhaps we should have a way to exclude it through the use of a parameter in the scoped API key, which will make it immutable to tampering.
Actually, the field to be used for scrolling will be
found
.
s
We just check if number per page * page >= total in order to decide whether to make a new request
k
But a query might not match all documents in a collection. So,
found
is the correct number to use.
out_of
returns total number of documents in collection.
s
Oh exactly, yeah I see
Does found apply to *
k
Yes, it will return same number as
out_of
in that case.
s
Right, thanks man ๐Ÿ™๐Ÿผ
k
๐Ÿ‘
j
@A Z 1 B you can customize the display of each item in the refinementList using the template parameter: https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/#widget-param-item And you can hide the count by removing it from the item template
a
thank you!