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
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Copy only highlighted fields into snippet doc.
Kishore Nallan22744b253f8f
diff --git a/src/collection.cpp b/src/collection.cppindex 16b6c748..68884fe1 100644--- a/src/collection.cpp+++ b/src/collection.cpp@@ -1494,7 +1494,6 @@ Option<nlohmann::json> Collection::search(const std::string & raw_query,highlight_res["snippet"] = nlohmann::json::object();copy_highlight_doc(highlight_items, document, highlight_res["snippet"]);- highlight_res["snippet"] = document;remove_flat_fields(highlight_res["snippet"]);highlight_res["snippet"].erase("id");