Bugzilla – Attachment 73618 Details for
Bug 8962
Restore Any index behavior and add Anywhere index
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8962: Restore Any index behavior and add Anywhere index
Bug-8962-Restore-Any-index-behavior-and-add-Anywhe.patch (text/plain), 2.55 KB, created by
Fridolin Somers
on 2018-04-04 12:35:42 UTC
(
hide
)
Description:
Bug 8962: Restore Any index behavior and add Anywhere index
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2018-04-04 12:35:42 UTC
Size:
2.55 KB
patch
obsolete
>From 356defabe627d8d393ecc1fa187d7029ba9f1716 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 22 Dec 2017 15:56:03 +0100 >Subject: [PATCH] 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 >--- > etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl >index 59876ca..f11524f 100644 >--- a/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl >+++ b/etc/zebradb/xsl/koha-indexdefs-to-zebra.xsl >@@ -80,7 +80,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xsl:call-template name="handle-index-match-heading"/> > <xsl:apply-templates/> > <xslo:template mode="index_all" match="text()"> >- <z:index name="Any:w Any:p"> >+ <z:index name="Anywhere:w Anywhere:p"> > <xslo:value-of select="."/> > </z:index> > </xslo:template> >@@ -536,6 +536,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) > <xsl:for-each select="kohaidx:target_index"> > <xsl:value-of select="." /><xsl:text> </xsl:text> > </xsl:for-each> >+ <xsl:text> Any:w Any:p</xsl:text> > </xsl:template> > > <xsl:template name="get-facets-target-indexes"> >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8962
:
13406
|
14871
|
14872
|
14873
|
21985
|
21986
|
21987
|
22675
|
23110
|
23115
|
23204
|
25671
|
25672
|
25673
|
25674
|
25675
|
70127
|
73617
|
73618
|
75569
|
75570