[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
Fri May 25 21:30:51 CEST 2018


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

Charles Farmer <charles.farmer at inlibro.com> changed:

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

--- Comment #66 from Charles Farmer <charles.farmer at inlibro.com> ---
Created attachment 75570
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75570&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

Signed-off-by: Charles Farmer <charles.farmer at inLibro.com>

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


More information about the Koha-bugs mailing list