https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43151 --- Comment #8 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 205603 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205603&action=edit Bug 43151: (QA follow-up) Stop a stale available:true token vetoing an accurate items-index filter _apply_item_level_filters left the biblio-level available:true token in the query string, reasoning that any bib passing the items-index filter would also satisfy that looser check. That's true for itype/ccode/ location/branch, but not for availability: Koha::Item::store (ITEM_CIRC_FIELDS) deliberately skips the biblio reindex on circulation-only changes once the items index is ready, so the biblios index's own available field is left stale on purpose. Since Elasticsearch ANDs must and filter clauses, that stale must-clause token could wrongly exclude a bib the fresh items-index filter had just matched - reopening the exact staleness bug Bug 42835's _apply_available_filter existed to fix. _strip_available_from_query_string restores that stripping (only for the available token, only once the items-index filter has been applied), so availability is resolved solely from the up-to-date items index again. Test plan: 1) prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t -- You are receiving this mail because: You are watching all bug changes.