Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Fix failing persistence tests. (#1836)

Harpreet Sangarbbeff25b6af2
diff --git a/test/collection_manager_test.cpp b/test/collection_manager_test.cpp
index a9ff40ac..1f659175 100644
--- a/test/collection_manager_test.cpp
+++ b/test/collection_manager_test.cpp
@@ -135,7 +135,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":false,
"sort":false,
"store":true,
- "type":"string"
+ "type":"string",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -147,7 +149,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":false,
"sort":false,
"store":true,
- "type":"string"
+ "type":"string",
+ "range_index":false,
+ "stem":false
},
{
"facet":true,
@@ -159,7 +163,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":true,
"sort":false,
"store":true,
- "type":"string[]"
+ "type":"string[]",
+ "range_index":false,
+ "stem":false
},
{
"facet":true,
@@ -171,7 +177,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":true,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -183,7 +191,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":true,
"sort":true,
"store":true,
- "type":"geopoint"
+ "type":"geopoint",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -195,7 +205,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":true,
"sort":false,
"store":true,
- "type":"string"
+ "type":"string",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -207,7 +219,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -220,7 +234,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":true,
"sort":false,
"store":true,
- "type":"object"
+ "type":"object",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -234,7 +250,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"sort":false,
"store":true,
"type":"float[]",
- "vec_dist":"cosine"
+ "vec_dist":"cosine",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -247,7 +265,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"sort":false,
"store":true,
"type":"string",
- "reference":"Products.product_id"
+ "reference":"Products.product_id",
+ "range_index":false,
+ "stem":false
},
{
"facet":false,
@@ -259,7 +279,9 @@ TEST_F(CollectionManagerTest, CollectionCreation) {
"optional":true,
"sort":true,
"store":true,
- "type":"int64"
+ "type":"int64",
+ "range_index":false,
+ "stem":false
}
],
"id":0,
@@ -1922,7 +1944,9 @@ TEST_F(CollectionManagerTest, CollectionCreationWithMetadata) {
"optional":false,
"sort":false,
"store":true,
- "type":"string"
+ "type":"string",
+ "range_index":false,
+ "stem":false
},
{
"facet":true,
@@ -1935,7 +1959,9 @@ TEST_F(CollectionManagerTest, CollectionCreationWithMetadata) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},{
"facet":true,
"index":true,
@@ -1947,7 +1973,9 @@ TEST_F(CollectionManagerTest, CollectionCreationWithMetadata) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},{
"facet":true,
"index":true,
@@ -1959,7 +1987,9 @@ TEST_F(CollectionManagerTest, CollectionCreationWithMetadata) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
}
],
"id":1,
diff --git a/test/core_api_utils_test.cpp b/test/core_api_utils_test.cpp
index f24ffbcf..3be8b6f5 100644
--- a/test/core_api_utils_test.cpp
+++ b/test/core_api_utils_test.cpp
@@ -1970,7 +1970,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":false,
"store":true,
- "type":"string"
+ "type":"string",
+ "range_index":false,
+ "stem":false
},
{
"facet":true,
@@ -1983,7 +1985,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},{
"facet":true,
"index":true,
@@ -1995,7 +1999,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},{
"facet":true,
"index":true,
@@ -2007,7 +2013,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
}
],
"id":1,
@@ -2057,7 +2065,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":false,
"store":true,
- "type":"string"
+ "type":"string",
+ "range_index":false,
+ "stem":false
},
{
"facet":true,
@@ -2070,7 +2080,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},{
"facet":true,
"index":true,
@@ -2082,7 +2094,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
},{
"facet":true,
"index":true,
@@ -2094,7 +2108,9 @@ TEST_F(CoreAPIUtilsTest, CollectionMetadataUpdate) {
"optional":false,
"sort":true,
"store":true,
- "type":"int32"
+ "type":"int32",
+ "range_index":false,
+ "stem":false
}
],
"id":1,