You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AND filter is ignored when its first value does not occur in any item #155
With conjunction: true, a filter whose first value is not present in the data is dropped, so search returns items that do not have that value and the result depends on the order of the filter values.
Expected: no items ([] 0) and all bucket counts 0 in every case, because no item has the tag silk. Instead, ['silk', 'cotton'] returns Shirt, and ['silk'] alone reports bucket counts as if no filter were set. The same happens across conjunctive facets (for example, filters: { tags: ['silk'], color: ['red'] } returns the red items).
In matrix (src/utils/facetsCore.js), the loop over conjunctive filters falls through to conjunctive_index = facetData when conjunctive_index is still undefined, so a missing first value leaves conjunctive_index as undefined instead of new FastBitSet([]) (unlike #130, which handled the case where a missing value comes after an existing one).
Activity
cigolpl commentedon Nov 12, 2026
Thank you @trackoor. I'll get back to it in next week
cigolpl commentedon Nov 16, 2026
#156
Fix filters with values missing from the index (2.4.5) (itemsapi#156)