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

            Bug ID: 39552
           Summary: Add a hook/plugin to Elasticsearch indexing to modify
                    record
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

As discussed at the Koha Hackfest 2025:

Sometimes we need conditional indexing of fields (008 based on leader, 264
based on indicator).

Instead of complicating the yml file and the DB, we can add a hook after the ES
record has been created but before it is sent to ES. This hook should get the
ES record and the MARC record (and maybe even the biblio/auth object) and
return the modified ES record.

So you can implement whatever weird conditionals etc you need, or even any
other modifications (eg getting number of items, advanced geo stuff, ..)
without us having to make core very complex.

-- 
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]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to