I have a document entity and repository as below.
@document(value = "npProduct")
public class NpProduct {
@Id
@Indexed
@NonNull
private String id;
@Indexed
@NonNull
private String email;
@Indexed
@NonNull
private String push;
@Indexed
@NonNull
private String banner;
}
public interface NpProductRepository extends RedisDocumentRepository<NpProduct, String> {
}
The below code works fine
Pageable pageable = PageRequest.of(0, 10).withSort(Sort.unsorted());
Page productPage = repository.findAll(pageable);
The below code works throws UnsupportedOperationException
Pageable pageable = PageRequest.of(0, 10).withSort(Sort.by(Sort.Direction.ASC, "email"));
Page productPage = repository.findAll(pageable);
env details
JDK 17
'org.springframework.boot' version '3.1.2'
group: 'com.redis.om', name: 'redis-om-spring', version: '0.8.7'