Skip to content
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public class PeopleService {
EntityStream entityStream;

// Find all people
public Iterable<Person> findAllPeople(int minAge, int maxAge) {
public Iterable<Person> findAllPeople() {
return entityStream //
.of(Person.class) //
.collect(Collectors.toList());
Expand All @@ -319,14 +319,14 @@ underlying search engine field. For example, in the example we have an `age` pro
numeric operations we can use with the stream's `filter` method such as `between`.

```java
// Find people by age range
public Iterable<Person> findByAgeBetween(int minAge, int maxAge) {
return entityStream //
.of(Person.class) //
.filter(Person$.AGE.between(minAge, maxAge)) //
.sorted(Person$.AGE, SortOrder.ASC) //
.collect(Collectors.toList());
}
// Find people by age range
public Iterable<Person> findByAgeBetween(int minAge, int maxAge) {
return entityStream //
.of(Person.class) //
.filter(Person$.AGE.between(minAge, maxAge)) //
.sorted(Person$.AGE, SortOrder.ASC) //
.collect(Collectors.toList());
}
```

In this example we also make use of the Streams `sorted` method to declare that our stream will be sorted by the `Person$.AGE` in `ASC`ending order.
Expand Down Expand Up @@ -360,7 +360,7 @@ inherited from the parent poms):
<path>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<version>3.0.4</version>
<version>3.0.6</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
Expand All @@ -370,7 +370,7 @@ inherited from the parent poms):
<path>
<groupId>com.redis.om</groupId>
<artifactId>redis-om-spring</artifactId>
<version>0.8.0</version>
<version>0.8.2</version>
</path>
</annotationProcessorPaths>
</configuration>
Expand Down Expand Up @@ -416,7 +416,7 @@ repositories {
### Dependency
```groovy
ext {
redisOmVersion = '0.8.1-SNAPSHOT'
redisOmVersion = '0.8.3-SNAPSHOT'
}

dependencies {
Expand Down
3 changes: 2 additions & 1 deletion demos/roms-vss/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
spring.mvc.hiddenmethod.filter.enabled=true
com.redis.om.vss.useLocalImages=false
com.redis.om.vss.maxLines=300
com.redis.om.vss.maxLines=300
redis.om.spring.djl.enabled=true
Loading