[Redis OM] Returning first 10 objects only

Hi guys,

I’m using Redis OM for spring boot, I am having trouble querying objects because it only returns the first 10 objects.

Repository Class:

public interface RedisBillerRepository extends RedisDocumentRepository<Biller, Long> {
  List<Biller> findByClientIds(String clientId);

Is there a way to return ALL the objects with the specific clientId? Not the first 10 only.

Thank you.

See spring boot - Returning only the first 10 record - Redis OM - Stack Overflow

Current RediSearch has a default for the LIMIT set to 10. To overcome this use add a Pageable to the repository method signature and then you can the proper limit:

Pageable pageRequest = PageRequest.of(0, 1000);