Comments (2)
@lizhe-gethub could you share your StateDTO
and maybe some sample data.
from redis-om-spring.
@lizhe-gethub the LIMIT clause is not part of the literal query, instead you want to pass a Pageable
object and declare it in the signature like:
In repository:
@Query("@title:$prefix*")
Page<MyDoc> customFindAllByTitleStartingWith(@Param("prefix") String prefix, Pageable pageable);
The use the query like:
Pageable pageRequest = PageRequest.of(0, 1);
Page<MyDoc> result = repository.customFindAllByTitleStartingWith("hel", pageRequest);
assertThat(result).hasSize(1);
assertEquals(2, result.getTotalPages());
assertEquals(2, result.getTotalElements());
assertEquals(1, result.getContent().size());
MyDoc doc1 = result.getContent().get(0);
from redis-om-spring.
Related Issues (20)
- Enable customization of the Redis Indices when declaring an Entity HOT 1
- com.redis.om.spring.ops.json.JSONOperationsImpl is using JSONArray.isEmpty() method which does not exist HOT 1
- Custom converters for Enum to String not working HOT 1
- Add support for repository derived delete methods like Spring Data JPA HOT 1
- Fastest way to read 1 million records from Redis using redis-om library HOT 2
- Add exist/notExist predicated for EntityStream's Aggregations
- Client Side Caching support via Jedis
- Query generation with InPredicate HOT 3
- Support for Lettuce Redis Client HOT 1
- The SearchOperations<String>.search() interface does not set the returnFields attribute; why does the result set not include any field data? HOT 2
- Negative @TimeToLive value in @Document entity executes redis EXPIRE command
- Vector Search example using redis-om-spring HOT 5
- Handle search aliased fields with special characters HOT 6
- Skip index creation and use existing index HOT 20
- SORTBY clause property not escaped in finder queries HOT 3
- QueryByExample<T> with RedisEnhancedRepository<T, ID> HOT 4
- Support for java.time.YearMonth Gson (TypeAdapter) HOT 2
- Using Llama3 embedding model in roms-vss example HOT 1
- Transactions in RedisOM?
- Paginated results for QBE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis-om-spring.