We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
$records = [ 1 => [ 'vendor' => 'Apple', 'model' => 'Iphone X', 'price' => 80999, 'color' => 'white', 'has_phones' => false, 'cam_mp' => 20, 'sale' => true, ], 2 => [ 'vendor' => 'Apple', 'model' => 'Iphone X Pro Max', 'price' => 80999, 'color' => 'black', 'has_phones' => true, 'cam_mp' => 40, 'sale' => true, ], 3 => [ 'vendor' => 'Samsung', 'model' => 'Galaxy S20', 'price' => 70599, 'color' => 'yellow', 'has_phones' => true, 'cam_mp' => 105, 'sale' => true, ], 4 => [ 'vendor' => 'Samsung', 'model' => 'Galaxy S20', 'price' => 70599, 'color' => 'black', 'has_phones' => true, 'cam_mp' => 105, 'sale' => true, ], 5 => [ 'vendor' => 'Samsung', 'model' => 'Galaxy A5', 'price' => 15000, 'color' => 'black', 'has_phones' => true, 'cam_mp' => 12, 'sale' => true, ], 6 => [ 'vendor' => 'Xiaomi', 'model' => 'MI 9', 'price' => 26000, 'color' => 'black', 'has_phones' => true, 'cam_mp' => 48, 'sale' => false, ] ]; $index = new ArrayIndex(); foreach ($records as $id => $item) { $index->addRecord($id, $item); } $facets = new Search($index); $filter = new ValueFilter('vendor'); $filter->setValue(['Test']); $filter2 = new ValueFilter('color'); $filter2->setValue(['white']); $result = $facets->find([$filter, $filter2]);
I expect empty result, because vendor 'Test' does not exist, but it's not
vendor
The text was updated successfully, but these errors were encountered:
#8 bugfix.Unexpected results. Filters that do not return results are …
a448ec8
…ignored for searching with multiple filters.
Hello @satanicman. Thanks for bug reporting. Issue fixed in lattest commit.
Please let me know If this fix is enough, I will release a new version.
Sorry, something went wrong.
All work fine, thx
#8 bugfix. Version 2.1.5 does not allow integer names for data fields
91f0acf
k-samuel
No branches or pull requests
Example:
I expect empty result, because
vendor
'Test' does not exist, but it's notThe text was updated successfully, but these errors were encountered: