[Koha-bugs] [Bug 12872] Exclude some fields from Zebra indexing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 11 15:28:13 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12872

--- Comment #8 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 31527
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31527&action=edit
Bug 12872: Exclude limited number of fields from Zebra indexing

This patch adds the use of preference ZebraExclude to rebuild_zebra.pl.
If that pref does not exist or is empty, behavior is unchanged.

The pref allows you to exclude fields, specific subfields, and even
field groups like 9XX from passing them to Zebra. The magic field XXX allows
you to skip a whole record while indexing; this is of course only
practical with a preceding specific condition.

The pref may contain multiple lines with their own conditions. A line may
start with a regex like /regex/:fieldlist. The regex is applied to the
marcxml. If it matches, the field excludes are processed.

Test plan:
The plan includes a few rebuilds. It may be practical to run this test on
a smaller test database.

[1a] Edit ZebraExclude syspref. Set it to 590, 952e
[1b] Edit a few records/items for these fields.
[1c] Rebuild the zebra index.
[1d] Check that info in 590 and 952e cannot be found in Zebra.

[2a] Edit ZebraExclude syspref. Set it to /_skip_/: XXX
[2b] Enter the _skip_ string into a few biblios (not in the same field).
[2c] Rebuild the zebra index.
[2d] Check that you cannot find these records in Zebra.

[3a] Edit ZebraExclude syspref. Set it to 9XX
[3b] Edit a few 9XX fields including some items (952).
[3c] Rebuild the zebra index.
[3d] Check that you cannot find 9XX info in Zebra.

[4 ] Enter some other value in the pref. Edit, rebuild and check.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list