Skip to content

Pageable with sort column throws UnsupportedOperationException #344

@tksarul

Description

@tksarul

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'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions