mirror of
https://github.com/typesense/typesense.git
synced 2025-05-22 23:06:30 +08:00
Fix approximation logic of filter matches in case of !=
.
This commit is contained in:
parent
a9ca96a63e
commit
f53f6635b7
@ -2072,9 +2072,8 @@ Option<bool> Index::_approximate_filter_ids(const filter& a_filter,
|
||||
}
|
||||
}
|
||||
|
||||
if (a_filter.apply_not_equals) {
|
||||
auto all_ids_size = seq_ids->num_ids();
|
||||
filter_ids_length = (all_ids_size - filter_ids_length);
|
||||
if (a_filter.apply_not_equals && filter_ids_length == 0) {
|
||||
filter_ids_length = seq_ids->num_ids();
|
||||
}
|
||||
|
||||
return Option(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user