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 sort property of float and geopoint array fields.

Kishore Nallanb9f624c2977e
diff --git a/include/field.h b/include/field.h
index 486b11c6..699c6cf6 100644
--- a/include/field.h
+++ b/include/field.h
@@ -438,7 +438,8 @@ struct field {
if(field_json.count(fields::sort) == 0) {
if(field_json["type"] == field_types::INT32 || field_json["type"] == field_types::INT64 ||
- field_json["type"] == field_types::BOOL || field_json["type"] == field_types::GEOPOINT) {
+ field_json["type"] == field_types::FLOAT || field_json["type"] == field_types::BOOL ||
+ field_json["type"] == field_types::GEOPOINT || field_json["type"] == field_types::GEOPOINT_ARRAY) {
field_json[fields::sort] = true;
} else {
field_json[fields::sort] = false;
diff --git a/src/collection_manager.cpp b/src/collection_manager.cpp
index 0b63116f..00be89f1 100644
--- a/src/collection_manager.cpp
+++ b/src/collection_manager.cpp
@@ -144,7 +144,7 @@ Option<bool> CollectionManager::load(const size_t collection_batch_size, const s
next_collection_id = 0;
}
- LOG(INFO) << "Loading " << collection_batch_size << " collections in parallel, "
+ LOG(INFO) << "Loading upto " << collection_batch_size << " collections in parallel, "
<< document_batch_size << " documents at a time.";
std::vector<std::string> collection_meta_jsons;