[Koha-bugs] [Bug 8962] Create a new index for OPAC simple search, more specific than "any"

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 5 02:41:37 CEST 2014


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

--- Comment #45 from David Cook <dcook at prosentient.com.au> ---
(In reply to M. de Rooy from comment #43)
> Martin: The first three patches are signed off already, the fourth patch is
> DOM only. Could we move your fourth patch to a new report and promote this
> report to Signed off?
> Note also that patch 2 and 3 are GRS1, to be obsoleted in near future. I am
> not sure if it still makes sense to put this in master..
> 
> Spotted a typo in the first patch: Any world (all indexes) --> word perhaps
> :)
> 
> A question on the DOM patch: Any is now a subset of Anywhere, which is good.
> But I am not sure if everybody wants Anywhere by default (in terms of space,
> performance or privacy). Could we make it an installation choice somehow? If
> Anywhere should not be there, should we still do something to let Any be its
> fallback?

Those are all really good questions.

After reviewing the patches a bit more, I don't think it actually makes sense
to even add "anywhere" to GRS1, as it doesn't agree with the Bib-1 semantics
(http://www.loc.gov/z3950/agency/bib1.html). 

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

[Note: this is how it currently is set up to work.]

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

[Note: while this is possible using DOM, I'm not sure that it is possible with
GRS1. Even if it is, since we're deprecating it, it becomes unnecessary.]

It probably would be a good idea to make inclusion of Anywhere configurable (in
terms of space, performance, and privacy). That's a really really really good
point.

How to do that though... that could be trickier. When using DOM, we could
disable Anywhere by default, and then say to run something like the following:

"xsltproc koha-indexdefs-to-zebra.xsl {biblio,authority}-koha-indexdefs.xml >
{biblio,authority}-zebra-indexdefs.xsl --stringparam anywhere index"

We would just need to add a xsl:param for "anywhere" into the
koha-indexdefs-to-zebra.xsl. 

As for having "Any" be the fallback of "Anywhere"... you might be able to do
something tricky in ccl.properties using aliases, but I'm not sure.

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


More information about the Koha-bugs mailing list