https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43151

--- Comment #1 from Pedro Amorim (ammopt) <[email protected]> ---
Created attachment 202512
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202512&action=edit
Bug 43151: Require a single item to satisfy combined item-level search filters

Combined item-level limits (item type, collection, location, home/holding
library, availability) were checked independently against each bib's
flattened, cross-item field arrays, so a bib could match a filter
combination no single item actually satisfied (e.g. itype:BOOK +
ccode:FICTION matching a bib whose only book is non-fiction and whose only
fiction item is a CD).

QueryBuilder now extracts these limits into constraint groups before they're
folded into the query string, and Search resolves them as one combined query
against the items index, requiring a single item to satisfy all of them
together. Falls back to the existing (imperfect) query-string behaviour
if the items index isn't ready.

Note: this does not fix the item-level facet counts shown alongside these
results, which are still built from the same flattened biblio-level arrays
and can still list values that don't reflect the active combined filter.
That's a separate, not yet addressed, follow-up.

Co-Authored-By: Claude Sonnet 5 <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to