How to filter over the full index results?

Hi, I’m creating a suggestion endpoint for the categories autocomplete input field, I’m using this sample udf

Let({
  name: 'ama',
},
  If(
    GTE(Length(Var("name")), 3),
    Map(
      Select(
        ["data"],
        Filter(
          Paginate(Match(Index("categories"), true)),
          Lambda(
            "ref",
            GT(
              FindStr(
                LowerCase(Select(["data", "name"], Get(Var("ref")))),
                LowerCase(Var("name"))
              ),
              -1
            )
          )
        )
      ),
      Lambda("ref", Get(Var("ref")))
    ),
    []
  )
)

Despite the fact that there are 81 categories returned by the categories index, when I search for an empty string it just returns 64 categories (note that in this example it is required to pass at least 3 chars).

It looks that there is a limitation, any workaround or any way to optimize this query?

Thank you

The Paginate command returns a default 64 results. You can adjust the number of results like this with the size option (to a maximum of 100,000):

Paginate(Match(Index("categories"), true), {size: 1000})

thank you @wallslide, my bad, I was focusing more on other methods and I missed it.