From da4ce7c41e7c84a1995207074bf1a1aea5217772 Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Sun, 15 Sep 2024 12:09:40 -0700 Subject: [PATCH 1/8] refactor: add 'ConditionalOnMissingBean' RedisMappingContext Bean --- .../java/com/redis/om/spring/RedisModulesConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/RedisModulesConfiguration.java b/redis-om-spring/src/main/java/com/redis/om/spring/RedisModulesConfiguration.java index 6875d1bc..6769d66e 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/RedisModulesConfiguration.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/RedisModulesConfiguration.java @@ -106,6 +106,12 @@ public class RedisModulesConfiguration { private static final Log logger = LogFactory.getLog(RedisModulesConfiguration.class); + @Bean(name = "keyValueMappingContext") + @ConditionalOnMissingBean + public RedisMappingContext redisMappingContext() { + return new RedisMappingContext(); + } + @Bean(name = "omGsonBuilder") public GsonBuilder gsonBuilder(List customizers) { From a53c8ed9065bae01c90dc359bf9faf54384da537 Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Tue, 8 Oct 2024 13:38:01 -0700 Subject: [PATCH 2/8] test: add tests for numeric data types in repository queries --- .../HashWithAllTheNumericsMappingTest.java | 97 +++++++++++++++++++ .../hash/model/HashWithAllTheNumerics.java | 35 +++++++ .../HashWithAllTheNumericsRepository.java | 17 ++++ 3 files changed, 149 insertions(+) create mode 100644 redis-om-spring/src/test/java/com/redis/om/spring/annotations/hash/HashWithAllTheNumericsMappingTest.java create mode 100644 redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/model/HashWithAllTheNumerics.java create mode 100644 redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/repository/HashWithAllTheNumericsRepository.java diff --git a/redis-om-spring/src/test/java/com/redis/om/spring/annotations/hash/HashWithAllTheNumericsMappingTest.java b/redis-om-spring/src/test/java/com/redis/om/spring/annotations/hash/HashWithAllTheNumericsMappingTest.java new file mode 100644 index 00000000..71ed6ca4 --- /dev/null +++ b/redis-om-spring/src/test/java/com/redis/om/spring/annotations/hash/HashWithAllTheNumericsMappingTest.java @@ -0,0 +1,97 @@ +package com.redis.om.spring.annotations.hash; + +import com.redis.om.spring.AbstractBaseEnhancedRedisTest; +import com.redis.om.spring.fixtures.hash.model.HashWithAllTheNumerics; +import com.redis.om.spring.fixtures.hash.repository.HashWithAllTheNumericsRepository; +import com.redis.om.spring.search.stream.EntityStream; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.Optional; +import java.util.Set; + +import static org.assertj.core.api.Assertions.assertThat; + +@SuppressWarnings("SpellCheckingInspection") +class HashWithAllTheNumericsMappingTest extends AbstractBaseEnhancedRedisTest { + + @Autowired + HashWithAllTheNumericsRepository repo; + + @Autowired + EntityStream es; + + @BeforeEach + void createTestDataIfNeeded() { + HashWithAllTheNumerics hwatn1 = HashWithAllTheNumerics.of("hash1", 1.0f, 1.0, BigInteger.valueOf(1), + BigDecimal.valueOf(1.0)); + HashWithAllTheNumerics hwatn2 = HashWithAllTheNumerics.of("hash2", 2.0f, 2.0, BigInteger.valueOf(2), + BigDecimal.valueOf(2.0)); + HashWithAllTheNumerics hwatn3 = HashWithAllTheNumerics.of("hash3", 3.0f, 3.0, BigInteger.valueOf(3), + BigDecimal.valueOf(3.0)); + HashWithAllTheNumerics hwatn4 = HashWithAllTheNumerics.of("hash4", 4.0f, 4.0, BigInteger.valueOf(4), + BigDecimal.valueOf(4.0)); + HashWithAllTheNumerics hwatn5 = HashWithAllTheNumerics.of("hash5", 5.0f, 5.0, BigInteger.valueOf(5), + BigDecimal.valueOf(5.0)); + HashWithAllTheNumerics hwatn6 = HashWithAllTheNumerics.of("hash6", 6.0f, 6.0, BigInteger.valueOf(6), + BigDecimal.valueOf(6.0)); + repo.saveAll(Set.of(hwatn1, hwatn2, hwatn3, hwatn4, hwatn5, hwatn6)); + } + + @Test + void testValuesAreStoredCorrectly() { + for (int i = 1; i <= 6; i++) { + String id = "hash" + i; + Optional hwatn = repo.findById(id); + + assertThat(hwatn).isPresent(); + + HashWithAllTheNumerics entity = hwatn.get(); + assertThat(entity.getId()).isEqualTo(id); + assertThat(entity.getAfloat()).isEqualTo((float) i); + assertThat(entity.getAdouble()).isEqualTo((double) i); + assertThat(entity.getAbigInteger()).isEqualTo(BigInteger.valueOf(i)); + assertThat(entity.getAbigDecimal()).isEqualTo(new BigDecimal(i + ".0")); + } + } + + @Test + void testFindByAFloatBetween() { + Iterable result = repo.findByAfloatBetween(2.5f, 4.5f); + assertThat(result).hasSize(2); + assertThat(result).extracting(HashWithAllTheNumerics::getAfloat) + .containsExactlyInAnyOrder(3.0f, 4.0f); + } + + @Test + void testFindByADoubleBetween() { + Iterable result = repo.findByAdoubleBetween(3.5, 5.5); + + assertThat(result).hasSize(2); + assertThat(result).extracting(HashWithAllTheNumerics::getAdouble) + .containsExactlyInAnyOrder(4.0, 5.0); + } + + @Test + void testFindByABigDecimalBetween() { + Iterable result = repo.findByAbigDecimalBetween( + new BigDecimal("1.5"), new BigDecimal("3.5")); + + assertThat(result).hasSize(2); + assertThat(result).extracting(HashWithAllTheNumerics::getAbigDecimal) + .containsExactlyInAnyOrder(new BigDecimal("2.0"), new BigDecimal("3.0")); + } + + @Test + void testFindByABigIntegerBetween() { + Iterable result = repo.findByAbigIntegerBetween( + BigInteger.valueOf(4), BigInteger.valueOf(6)); + + assertThat(result).hasSize(3); + assertThat(result).extracting(HashWithAllTheNumerics::getAbigInteger) + .containsExactlyInAnyOrder(BigInteger.valueOf(4), BigInteger.valueOf(5), BigInteger.valueOf(6)); + } +} diff --git a/redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/model/HashWithAllTheNumerics.java b/redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/model/HashWithAllTheNumerics.java new file mode 100644 index 00000000..529f9d06 --- /dev/null +++ b/redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/model/HashWithAllTheNumerics.java @@ -0,0 +1,35 @@ +package com.redis.om.spring.fixtures.hash.model; + +import com.redis.om.spring.annotations.Indexed; +import lombok.*; +import org.springframework.data.annotation.Id; +import org.springframework.data.redis.core.RedisHash; + +import java.math.BigDecimal; +import java.math.BigInteger; + +@Data +@NoArgsConstructor(force = true) +@RequiredArgsConstructor(staticName = "of") +@RedisHash +public class HashWithAllTheNumerics { + @Id + @NonNull + private String id; + + @NonNull + @Indexed + private Float afloat; + + @NonNull + @Indexed + private Double adouble; + + @NonNull + @Indexed + private BigInteger abigInteger; + + @NonNull + @Indexed + private BigDecimal abigDecimal; +} diff --git a/redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/repository/HashWithAllTheNumericsRepository.java b/redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/repository/HashWithAllTheNumericsRepository.java new file mode 100644 index 00000000..9145ec96 --- /dev/null +++ b/redis-om-spring/src/test/java/com/redis/om/spring/fixtures/hash/repository/HashWithAllTheNumericsRepository.java @@ -0,0 +1,17 @@ +package com.redis.om.spring.fixtures.hash.repository; + +import com.redis.om.spring.fixtures.hash.model.HashWithAllTheNumerics; +import com.redis.om.spring.repository.RedisEnhancedRepository; + +import java.math.BigDecimal; +import java.math.BigInteger; + +public interface HashWithAllTheNumericsRepository extends RedisEnhancedRepository { + Iterable findByAfloatBetween(Float low, Float high); + Iterable findByAdoubleBetween(Double low, Double high); + Iterable findByAbigDecimalBetween(BigDecimal low, BigDecimal high); + Iterable findByAbigIntegerBetween(BigInteger low, BigInteger high); +} + + + From d0d10473518ecdc02a1d089f62a4e74c34c5ff0b Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Tue, 8 Oct 2024 13:48:01 -0700 Subject: [PATCH 3/8] release: v0.9.6 --- README.md | 4 ++-- demos/roms-documents/pom.xml | 4 ++-- demos/roms-hashes/pom.xml | 2 +- demos/roms-permits/pom.xml | 2 +- demos/roms-vss/pom.xml | 2 +- pom.xml | 2 +- redis-om-spring/pom.xml | 2 +- .../src/main/java/com/redis/om/spring/RedisOMProperties.java | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 2c0d1a86..47bdcedd 100644 --- a/README.md +++ b/README.md @@ -457,7 +457,7 @@ inherited from the parent poms): com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 @@ -504,7 +504,7 @@ repositories { ```groovy ext { - redisOmVersion = '0.9.6-SNAPSHOT' + redisOmVersion = '0.9.6' } dependencies { diff --git a/demos/roms-documents/pom.xml b/demos/roms-documents/pom.xml index 688712d8..5a45b60a 100644 --- a/demos/roms-documents/pom.xml +++ b/demos/roms-documents/pom.xml @@ -31,7 +31,7 @@ com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 org.springframework.boot @@ -141,7 +141,7 @@ com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 diff --git a/demos/roms-hashes/pom.xml b/demos/roms-hashes/pom.xml index c35ab290..8d8d82c7 100644 --- a/demos/roms-hashes/pom.xml +++ b/demos/roms-hashes/pom.xml @@ -30,7 +30,7 @@ com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 org.springframework.boot diff --git a/demos/roms-permits/pom.xml b/demos/roms-permits/pom.xml index f8cd63ab..1fe101d1 100644 --- a/demos/roms-permits/pom.xml +++ b/demos/roms-permits/pom.xml @@ -34,7 +34,7 @@ com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 diff --git a/demos/roms-vss/pom.xml b/demos/roms-vss/pom.xml index fb1ed8b3..70b86cde 100644 --- a/demos/roms-vss/pom.xml +++ b/demos/roms-vss/pom.xml @@ -30,7 +30,7 @@ com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 org.springframework.boot diff --git a/pom.xml b/pom.xml index 9606c247..4607a7c0 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.redis.om redis-om-spring-parent - 0.9.6-SNAPSHOT + 0.9.6 redis-om-spring-parent pom diff --git a/redis-om-spring/pom.xml b/redis-om-spring/pom.xml index 95c4443d..6f86bdcb 100644 --- a/redis-om-spring/pom.xml +++ b/redis-om-spring/pom.xml @@ -7,7 +7,7 @@ com.redis.om redis-om-spring - 0.9.6-SNAPSHOT + 0.9.6 jar redis-om-spring diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java b/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java index 8ddf875c..90340386 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java @@ -12,7 +12,7 @@ prefix = "redis.om.spring", ignoreInvalidFields = true ) public class RedisOMProperties { - public static final String ROMS_VERSION = "0.9.6-SNAPSHOT"; + public static final String ROMS_VERSION = "0.9.6"; public static final int MAX_SEARCH_RESULTS = 10000; public static final double DEFAULT_DISTANCE = 0.0005; public static final Metrics DEFAULT_DISTANCE_METRIC = Metrics.MILES; From bec7c33e492b123f9f624c5978d5d98c286a19b2 Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Tue, 8 Oct 2024 19:32:41 -0700 Subject: [PATCH 4/8] fix: include LocalDate, LocalDateTime in params that need conversion+escaping --- .../redis/om/spring/repository/query/clause/QueryClause.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/repository/query/clause/QueryClause.java b/redis-om-spring/src/main/java/com/redis/om/spring/repository/query/clause/QueryClause.java index e8e0782e..9e51ef54 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/repository/query/clause/QueryClause.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/repository/query/clause/QueryClause.java @@ -246,7 +246,7 @@ public String prepareQuery(String field, Object... params) { } else { if (clauseTemplate.getIndexType() == FieldType.TEXT) { prepared = prepared.replace(PARAM_PREFIX + i++, param.toString()); - } else if (clauseTemplate.getIndexType() == FieldType.NUMERIC) { + } else if (clauseTemplate.getIndexType() == FieldType.NUMERIC && !paramClass.equalsIgnoreCase("java.time.LocalDateTime") && !paramClass.equalsIgnoreCase("java.time.LocalDate")) { prepared = prepared.replace(PARAM_PREFIX + i++, param.toString()); } else { prepared = prepared.replace(PARAM_PREFIX + i++, From 3d1c2b12c018fc987a38de3e24f979c55fef92eb Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Mon, 14 Oct 2024 07:57:18 -0700 Subject: [PATCH 5/8] release: 0.9.7-SNAPSHOT --- README.md | 4 ++-- demos/roms-documents/pom.xml | 4 ++-- demos/roms-hashes/pom.xml | 2 +- demos/roms-permits/pom.xml | 2 +- demos/roms-vss/pom.xml | 2 +- pom.xml | 2 +- redis-om-spring/pom.xml | 2 +- .../src/main/java/com/redis/om/spring/RedisOMProperties.java | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 47bdcedd..a1f4103a 100644 --- a/README.md +++ b/README.md @@ -457,7 +457,7 @@ inherited from the parent poms): com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT @@ -504,7 +504,7 @@ repositories { ```groovy ext { - redisOmVersion = '0.9.6' + redisOmVersion = '0.9.7-SNAPSHOT' } dependencies { diff --git a/demos/roms-documents/pom.xml b/demos/roms-documents/pom.xml index 5a45b60a..bb0ed02a 100644 --- a/demos/roms-documents/pom.xml +++ b/demos/roms-documents/pom.xml @@ -31,7 +31,7 @@ com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT org.springframework.boot @@ -141,7 +141,7 @@ com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT diff --git a/demos/roms-hashes/pom.xml b/demos/roms-hashes/pom.xml index 8d8d82c7..879a86e9 100644 --- a/demos/roms-hashes/pom.xml +++ b/demos/roms-hashes/pom.xml @@ -30,7 +30,7 @@ com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT org.springframework.boot diff --git a/demos/roms-permits/pom.xml b/demos/roms-permits/pom.xml index 1fe101d1..24b815a1 100644 --- a/demos/roms-permits/pom.xml +++ b/demos/roms-permits/pom.xml @@ -34,7 +34,7 @@ com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT diff --git a/demos/roms-vss/pom.xml b/demos/roms-vss/pom.xml index 70b86cde..02c64d84 100644 --- a/demos/roms-vss/pom.xml +++ b/demos/roms-vss/pom.xml @@ -30,7 +30,7 @@ com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT org.springframework.boot diff --git a/pom.xml b/pom.xml index 4607a7c0..96bb7517 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.redis.om redis-om-spring-parent - 0.9.6 + 0.9.7-SNAPSHOT redis-om-spring-parent pom diff --git a/redis-om-spring/pom.xml b/redis-om-spring/pom.xml index 6f86bdcb..4388c242 100644 --- a/redis-om-spring/pom.xml +++ b/redis-om-spring/pom.xml @@ -7,7 +7,7 @@ com.redis.om redis-om-spring - 0.9.6 + 0.9.7-SNAPSHOT jar redis-om-spring diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java b/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java index 90340386..cf708699 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java @@ -12,7 +12,7 @@ prefix = "redis.om.spring", ignoreInvalidFields = true ) public class RedisOMProperties { - public static final String ROMS_VERSION = "0.9.6"; + public static final String ROMS_VERSION = "0.9.7-SNAPSHOT"; public static final int MAX_SEARCH_RESULTS = 10000; public static final double DEFAULT_DISTANCE = 0.0005; public static final Metrics DEFAULT_DISTANCE_METRIC = Metrics.MILES; From 7b19023ad43cd09aadfb4242f2f9e419555151b1 Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Wed, 23 Oct 2024 13:26:40 -0700 Subject: [PATCH 6/8] build: set Maven Compiler Plugin to release 17 --- redis-om-spring/pom.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/redis-om-spring/pom.xml b/redis-om-spring/pom.xml index 4388c242..355d76d6 100644 --- a/redis-om-spring/pom.xml +++ b/redis-om-spring/pom.xml @@ -372,10 +372,9 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.1 + 3.11.0 - 21 - 21 + 17 ${project.build.sourceEncoding} true From 09926004f10f4cfd5aa96e21ab119211d51725fc Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Wed, 23 Oct 2024 13:34:11 -0700 Subject: [PATCH 7/8] refactor: adjust saveAll Doc failures to work with Java 17 --- .../SimpleRedisDocumentRepository.java | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/repository/support/SimpleRedisDocumentRepository.java b/redis-om-spring/src/main/java/com/redis/om/spring/repository/support/SimpleRedisDocumentRepository.java index 0bdcad0b..39a94edc 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/repository/support/SimpleRedisDocumentRepository.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/repository/support/SimpleRedisDocumentRepository.java @@ -24,6 +24,8 @@ import com.redis.om.spring.serialization.gson.GsonListOfType; import com.redis.om.spring.util.ObjectUtils; import com.redis.om.spring.vectorize.Embedder; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.BeanWrapper; import org.springframework.beans.BeanWrapperImpl; import org.springframework.beans.PropertyAccessor; @@ -51,6 +53,7 @@ import org.springframework.util.ReflectionUtils; import redis.clients.jedis.Jedis; import redis.clients.jedis.Pipeline; +import redis.clients.jedis.exceptions.JedisDataException; import redis.clients.jedis.json.Path2; import redis.clients.jedis.search.Query; import redis.clients.jedis.search.SearchResult; @@ -64,8 +67,10 @@ import java.nio.file.Paths; import java.util.*; import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Function; import java.util.stream.Collectors; +import java.util.stream.IntStream; import java.util.stream.StreamSupport; import static com.redis.om.spring.util.ObjectUtils.*; @@ -74,6 +79,8 @@ public class SimpleRedisDocumentRepository extends SimpleKeyValueRepository implements RedisDocumentRepository { + private final static Logger logger = LoggerFactory.getLogger(SimpleRedisDocumentRepository.class); + protected final RedisModulesOperations modulesOperations; protected final EntityInformation metadata; protected final KeyValueOperations operations; @@ -172,6 +179,7 @@ public boolean setExpiration(ID id, Long expiration, TimeUnit timeUnit) { public List saveAll(Iterable entities) { Assert.notNull(entities, "The given Iterable of entities must not be null!"); List saved = new ArrayList<>(); + List entityIds = new ArrayList<>(); try (Jedis jedis = modulesOperations.client().getJedis().get()) { Pipeline pipeline = jedis.pipelined(); @@ -188,6 +196,8 @@ public List saveAll(Iterable entities) { .getProperty(Objects.requireNonNull(keyValueEntity.getIdProperty())); keyValueEntity.getPropertyAccessor(entity).setProperty(keyValueEntity.getIdProperty(), id); + entityIds.add(id); + String keyspace = keyValueEntity.getKeySpace(); byte[] objectKey = createKey(keyspace, Objects.requireNonNull(id).toString()); @@ -215,7 +225,22 @@ public List saveAll(Iterable entities) { saved.add(entity); } - pipeline.sync(); + + List responses = pipeline.syncAndReturnAll(); + + // Process responses using streams to avoid iterator issues + if (responses != null && !responses.isEmpty()) { + long failedCount = IntStream.range(0, Math.min(responses.size(), entityIds.size())) + .filter(i -> responses.get(i) instanceof JedisDataException) + .peek(i -> logger.warn("Failed JSON.SET command for entity with id: {} Error: {}", + entityIds.get(i), + ((JedisDataException) responses.get(i)).getMessage())) + .count(); + + if (failedCount > 0) { + logger.warn("Total failed JSON.SET commands: {}", failedCount); + } + } } return saved; From 1f536720b6f387727f411bb1bcb786b0a29920da Mon Sep 17 00:00:00 2001 From: Brian Sam-Bodden Date: Wed, 23 Oct 2024 15:36:09 -0700 Subject: [PATCH 8/8] release: v0.9.7 --- README.md | 4 ++-- demos/roms-documents/pom.xml | 4 ++-- demos/roms-hashes/pom.xml | 2 +- demos/roms-permits/pom.xml | 2 +- demos/roms-vss/pom.xml | 2 +- pom.xml | 2 +- redis-om-spring/pom.xml | 2 +- .../src/main/java/com/redis/om/spring/RedisOMProperties.java | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a1f4103a..7a67b2a1 100644 --- a/README.md +++ b/README.md @@ -457,7 +457,7 @@ inherited from the parent poms): com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 @@ -504,7 +504,7 @@ repositories { ```groovy ext { - redisOmVersion = '0.9.7-SNAPSHOT' + redisOmVersion = '0.9.7' } dependencies { diff --git a/demos/roms-documents/pom.xml b/demos/roms-documents/pom.xml index bb0ed02a..1b54e61b 100644 --- a/demos/roms-documents/pom.xml +++ b/demos/roms-documents/pom.xml @@ -31,7 +31,7 @@ com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 org.springframework.boot @@ -141,7 +141,7 @@ com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 diff --git a/demos/roms-hashes/pom.xml b/demos/roms-hashes/pom.xml index 879a86e9..411d357c 100644 --- a/demos/roms-hashes/pom.xml +++ b/demos/roms-hashes/pom.xml @@ -30,7 +30,7 @@ com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 org.springframework.boot diff --git a/demos/roms-permits/pom.xml b/demos/roms-permits/pom.xml index 24b815a1..ad5aa970 100644 --- a/demos/roms-permits/pom.xml +++ b/demos/roms-permits/pom.xml @@ -34,7 +34,7 @@ com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 diff --git a/demos/roms-vss/pom.xml b/demos/roms-vss/pom.xml index 02c64d84..7d73e5ac 100644 --- a/demos/roms-vss/pom.xml +++ b/demos/roms-vss/pom.xml @@ -30,7 +30,7 @@ com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 org.springframework.boot diff --git a/pom.xml b/pom.xml index 96bb7517..fb4d352c 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.redis.om redis-om-spring-parent - 0.9.7-SNAPSHOT + 0.9.7 redis-om-spring-parent pom diff --git a/redis-om-spring/pom.xml b/redis-om-spring/pom.xml index 355d76d6..39be5704 100644 --- a/redis-om-spring/pom.xml +++ b/redis-om-spring/pom.xml @@ -7,7 +7,7 @@ com.redis.om redis-om-spring - 0.9.7-SNAPSHOT + 0.9.7 jar redis-om-spring diff --git a/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java b/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java index cf708699..25f46cf2 100644 --- a/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java +++ b/redis-om-spring/src/main/java/com/redis/om/spring/RedisOMProperties.java @@ -12,7 +12,7 @@ prefix = "redis.om.spring", ignoreInvalidFields = true ) public class RedisOMProperties { - public static final String ROMS_VERSION = "0.9.7-SNAPSHOT"; + public static final String ROMS_VERSION = "0.9.7"; public static final int MAX_SEARCH_RESULTS = 10000; public static final double DEFAULT_DISTANCE = 0.0005; public static final Metrics DEFAULT_DISTANCE_METRIC = Metrics.MILES;