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
No search cutoff default if exhaustive search is used.
Kishore Nallan866b5820f3f7
diff --git a/src/collection_manager.cpp b/src/collection_manager.cppindex e3307c05..30324b93 100644--- a/src/collection_manager.cpp+++ b/src/collection_manager.cpp@@ -559,8 +559,8 @@ Option<bool> CollectionManager::do_search(std::map<std::string, std::string>& reconst char *PRIORITIZE_EXACT_MATCH = "prioritize_exact_match";const char *PRE_SEGMENTED_QUERY = "pre_segmented_query";- const char *EXHAUSTIVE_SEARCH = "exhaustive_search";const char *SEARCH_CUTOFF_MS = "search_cutoff_ms";+ const char *EXHAUSTIVE_SEARCH = "exhaustive_search";if(req_params.count(NUM_TYPOS) == 0) {req_params[NUM_TYPOS] = "2";@@ -671,14 +671,17 @@ Option<bool> CollectionManager::do_search(std::map<std::string, std::string>& rereq_params[PRE_SEGMENTED_QUERY] = "false";}- if(req_params.count(EXHAUSTIVE_SEARCH) == 0) {- req_params[EXHAUSTIVE_SEARCH] = "false";- }-if(req_params.count(SEARCH_CUTOFF_MS) == 0) {req_params[SEARCH_CUTOFF_MS] = "2000";}+ if(req_params.count(EXHAUSTIVE_SEARCH) == 0) {+ req_params[EXHAUSTIVE_SEARCH] = "false";+ } else if(req_params[EXHAUSTIVE_SEARCH] == "true") {+ // if exhaustive search is enabled, we won't enable search cut-off by default+ req_params[SEARCH_CUTOFF_MS] = "3600000";+ }+std::vector<std::string> query_by_weights_str;std::vector<size_t> query_by_weights;