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

Expose text match score as "text_match".

kishorenc0055a687a74b
diff --git a/src/collection.cpp b/src/collection.cpp
index e833c9fb..af5027a1 100644
--- a/src/collection.cpp
+++ b/src/collection.cpp
@@ -784,7 +784,7 @@ Option<nlohmann::json> Collection::search(const std::string & query, const std::
prune_document(document, include_fields, exclude_fields);
wrapper_doc["document"] = document;
- wrapper_doc["match_score"] = field_order_kv.match_score;
+ wrapper_doc["text_match"] = field_order_kv.match_score;
//wrapper_doc["seq_id"] = (uint32_t) field_order_kv.key;
result["hits"].push_back(wrapper_doc);
diff --git a/src/typesense_server_utils.cpp b/src/typesense_server_utils.cpp
index d67eee99..66a73a3b 100644
--- a/src/typesense_server_utils.cpp
+++ b/src/typesense_server_utils.cpp
@@ -108,7 +108,7 @@ void init_cmdline_options(cmdline::parser & options, int argc, char **argv) {
options.add<std::string>("peering-address", '\0', "Internal IP address to which Typesense peering service binds.", false, "");
options.add<uint32_t>("peering-port", '\0', "Port on which Typesense peering service listens.", false, 8107);
- options.add<std::string>("peers", '\0', "Path to file with comma separated string of peer node IPs.", false);
+ options.add<std::string>("peers", '\0', "Path to file containing comma separated string of all nodes in the cluster.", false);
options.add<std::string>("ssl-certificate", 'c', "Path to the SSL certificate file.", false, "");
options.add<std::string>("ssl-certificate-key", 'k', "Path to the SSL certificate key file.", false, "");