https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42508 --- Comment #55 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 207507 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207507&action=edit Bug 42508: Add patron ES search query builder and REST API Adds the search layer: - Koha::SearchEngine::Elasticsearch::Search::Patrons query builder - Honors DefaultPatronSearchFields syspref - Supports starts_with and contains match types - Column-level filters with colon-separated multi-field OR search - Facet aggregations for library, category, and restriction status - Validates caller-supplied fields, filters and sort keys against the resolved searchable set (staff_searchable), rejecting anything else - REST API endpoint GET /search/patrons with DataTables compatibility - Invalid/non-searchable fields and malformed filters return 400 (invalid_query) rather than a bare 500 - Adds the top-level "search" API tag used by this endpoint Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ prove t/Koha/SearchEngine/Elasticsearch/Search/Patrons.t \ t/db_dependent/api/v1/search_patrons.t => SUCCESS: Tests pass! 3. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.