[Koha-zebra] Zebra Sorting Problems

Joshua Ferraro jmf at liblime.com
Thu Mar 16 18:28:00 CET 2006


Hi all,

Chris and I have been trying to get ZOOM's sort() or sort_as() methods
working ... hoping ID guys can shed some light on why they're not.

So ... right after a search we're doing:

        # sort result set 
        # in theory this should sort by title
        if ($rs->sort("yaz", "1=4 <i") < 0) {
                 warn "sort failed";
        }
        else {
        warn "sorted";
        }

The Apache log shows:
[Thu Mar 16 10:24:24 2006] [error] [client 70.106.173.65] sorted at /home/koha/testing/koha/intranet/modules/C4/SearchMarc.pm line 265., referer: http://opactest.liblime.com/cgi-bin/koha/opac-search.pl

However, Zebra's log shows:

10:24:24-16/03 zebrasrv(3) [request] Sort  ERROR 207 (1)->1

and the results are clearly not sorted ...

Here's a short sample of our 'collection.abs' file:
melm 090$c              identifier-standard,identifier-standard:p
melm 020$a              isbn:w,!:s
melm 100                author,author:p,!:s
melm 110                author
melm 111                author
melm 130                title
melm 240                title,title:p
melm 242                title,title:p
melm 243                title,title:p
melm 245$c              author
melm 245                title,title:p
melm 245/?/a            title           !:w,!:p,!:s

Any suggestions for this problem? Also, we're interested in the
relevance ranking options ... how would we set that up?

Cheers,

-- 
Joshua Ferraro               VENDOR SERVICES FOR OPEN-SOURCE SOFTWARE
President, Technology       migration, training, maintenance, support
LibLime                                Featuring Koha Open-Source ILS
jmf at liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS





More information about the Koha-zebra mailing list