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
Use original index of facet info during faceting.
Kishore Nallan3a7186f9eb30
diff --git a/src/index.cpp b/src/index.cppindex 8cd68d5c..7393c1f0 100644--- a/src/index.cpp+++ b/src/index.cpp@@ -1338,8 +1338,8 @@ void Index::do_facets(std::vector<facet> & facets, facet_query_t & facet_query,size_t total_docs = seq_ids->num_ids();// assumed that facet fields have already been validated upstream- for(size_t findex=0; findex < facets.size(); findex++) {- auto& a_facet = facets[findex];+ for(auto& a_facet : facets) {+ auto findex = a_facet.orig_index;const auto& facet_field = facet_infos[findex].facet_field;const bool use_facet_query = facet_infos[findex].use_facet_query;const auto& fquery_hashes = facet_infos[findex].hashes;