https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36261 --- Comment #10 from Andreas Jonsson <andreas.jonsson@kreablo.se> --- (In reply to David Cook from comment #6)
(In reply to Andreas Jonsson from comment #4)
This is a setting that is rarely changed, I think it is justified to require a reindexing for changes to take effect.
That's a good point. I suppose we do have a number of other settings that require reindexes/restarts. We could add that to the explanation.
That said, I'm still not sure it's possible at indexing time, especially since the search is used by both the OPAC and the staff interface. You couldn't just suppress entire records or items at indexing time without causing systemic problems.
When it comes to filtering items, I'm thinking that, in the search index, there should be a record level field for "no opac visible items" and for each item there should be a flag "hidden in opac". So, you can filter the search on the record level so you only get records that have at least one opac visible item. And then the information about which items that should be excluded in the result view is available directly from the search index. No additional processing would be needed at search time. -- You are receiving this mail because: You are watching all bug changes.