I'm facing problem in implementing algolia browseObjects?

I’m implementing algoliaSearch for listing products under categories in angular ssr.
There are two problems while using bowseObjects:

  1. Products are not filtered on the basis of categoryId using facetFilters in browseObjects
  2. browseObjects fetching unlimited products

My target is to fetch 20 products against each category.

Looking forward for your kind support.