[Koha-bugs] [Bug 8962] Restore Any index behavior and add Anywhere index

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 4 14:35:42 CEST 2018


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

Fridolin SOMERS <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #70127|0                           |1
        is obsolete|                            |

--- Comment #63 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 73618
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=73618&action=edit
Bug 8962: Restore Any index behavior and add Anywhere index

The "Any" index/register should contains all the data contained in all the
other indexes/registers (e.g. Title, Author, Subject, etc).

The "Anywhere" index/register should contain the entire record including
fields/subfields that aren't indexed anywhere else.

In GRS1 indexing the Any index was indeed only on fields defined as indexed.
This has changed in DOM where all data in MARC is indexed with Any.
This generates a lot of results when no index is defined in search.

This patch changes the DOM xsl config generation to add Any to each indexed
data and add Anywhere to keep a way of searching on all data.

Test plan :
- Add a data on a field that is not indexed : for example "toto" in 998$z
- Add same data as the title of another record
- Index the records
- Search on toto without index (uses Any) => you get the 2 records
- Search on toto with title index => you get the record with "toto" as title
- Apply patch
- Update DOM xsl config files
- Reindex
- Search on toto without index (uses Any) => you get the record with "toto" as
title
- Search on toto with title index => you get the record with "toto" as title
- Search on toto with Anywhere index => you get the 2 records

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


More information about the Koha-bugs mailing list