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
Don't require facet index for not equals.
Kishore Nallan254abbfdbc47
diff --git a/src/field.cpp b/src/field.cppindex ff7a7df9..60831ef1 100644--- a/src/field.cpp+++ b/src/field.cpp@@ -328,12 +328,6 @@ Option<bool> filter::parse_filter_query(const string& simple_filter_query,str_comparator = EQUALS;while(++filter_value_index < raw_value.size() && raw_value[filter_value_index] == ' ');} else if(raw_value.size() >= 2 && raw_value[0] == '!' && raw_value[1] == '=') {- if(!_field.facet) {- // EXCLUDE filtering on string is possible only on facet fields- return Option<bool>(400, "To perform exclude filtering, filter field `" +- _field.name + "` must be a facet field.");- }-str_comparator = NOT_EQUALS;filter_value_index++;while(++filter_value_index < raw_value.size() && raw_value[filter_value_index] == ' ');diff --git a/test/collection_filtering_test.cpp b/test/collection_filtering_test.cppindex 3c25f825..fc73febc 100644--- a/test/collection_filtering_test.cpp+++ b/test/collection_filtering_test.cpp@@ -1735,7 +1735,7 @@ TEST_F(CollectionFilteringTest, NegationOperatorBasics) {Collection *coll1;std::vector<field> fields = {field("title", field_types::STRING, false),- field("artist", field_types::STRING, true),+ field("artist", field_types::STRING, false),field("points", field_types::INT32, false),};coll1 = collectionManager.get_collection("coll1").get();