Zebra Sorting Problems

View: New views
2 Messages — Rating Filter:   Alert me  

Zebra Sorting Problems

by Joshua Ferraro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@... |Full Demos at http://liblime.com/koha |1(888)KohaILS


_______________________________________________
Koha-zebra mailing list
Koha-zebra@...
http://lists.nongnu.org/mailman/listinfo/koha-zebra

Re: Zebra Sorting Problems

by Henri-Damien :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi
I have the same issue on Date-Of-Publication.
I think this may be because some information in 100$a is not fully detailed for dates of publication.
But I want also to check whether those issues are fixed. (For Titles and authors, I know it is.)


Joshua M. Ferraro wrote:
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@liblime.com |Full Demos at http://liblime.com/koha |1(888)KohaILS


_______________________________________________
Koha-zebra mailing list
Koha-zebra@nongnu.org
http://lists.nongnu.org/mailman/listinfo/koha-zebra