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
More logging for diagnosing a highlighting issue.
Kishore Nallan5c34382a8122
diff --git a/src/collection.cpp b/src/collection.cppindex 95154220..0c205105 100644--- a/src/collection.cpp+++ b/src/collection.cpp@@ -2760,7 +2760,10 @@ void Collection::highlight_text(const string& highlight_start_tag, const string&for(size_t j = 0; j < token_len; j++) {if((snippet_start_offset + j) >= text.size()) {LOG(ERROR) << "??? snippet_start_offset: " << snippet_start_offset- << ", j: " << j << ", token_len: " << token_len << ", text: " << text;+ << ", offset_it->first: " << offset_it->first+ << ", offset_it->second: " << offset_it->second+ << ", end_offset: " << end_offset+ << ", j: " << j << ", token_len: " << token_len << ", text: " << text;break;}highlighted_text << text[snippet_start_offset + j];