[greenstone-users] RE: Help with sorting search results by date

From Allison Zhang
DateWed Sep 30 07:20:52 2009
Subject [greenstone-users] RE: Help with sorting search results by date
In-Reply-To (4AC165B7-3000500-cs-waikato-ac-nz)
Katherine,

Thank you very much for your response!

The following setting has been in our main.cfg file for several years now.

cgiarg shortname=t argdefault=0

So the search default is always "all". The search results are not ordered by date. Maybe, it doesn't work in version 2.74?


Allison


> -----Original Message-----
> From: Katherine Don [mailto:kjdon@cs.waikato.ac.nz]
> Sent: Monday, September 28, 2009 9:41 PM
> To: Allison Zhang
> Cc: greenstone-users@list.scms.waikato.ac.nz
> Subject: Re: [greenstone-users] RE: Help with sorting search results by
> date
>
> Hi Allison
>
> The search results ordering is a bit funny.
>
> For mg collections, it can't do ranking and boolean searches together.
> A
> 'some' search will return a ranked list, while an 'all' search will
> return in build order.
>
> For mgpp, it can actually do both at once. However, to keep the
> interface the same as for mg collections, it was decided to make 'some'
> searches ranked, and 'all' searches in build order.
> So for your collection, if you change to all search, then you will get
> ordered by date.
>
> I had just had a look to see if there is an argument that you can set
> to
> make it order by date for both some and all. There isn't.
> I will need to modify the code and the interface to separate the
> some/all and ranked/build order options. I have added a ticket for this
> to be looked at for the 2.84 release. Unfortunately it won't make it in
> to the soon to be released 2.83.
>
> You might like to set the default value for t arg to be 0 (in
> etc/main.cfg, cgiarg shortname=t argdefault=0) then at least users will
> get date ranked search for the default settings.
>
> Regards,
> Katherine
>
>
>
>
> Allison Zhang wrote:
> >
> > Hi, Katherine,
> >
> >
> >
> > Thank you very much for your message. I checked the archives.inf file
> > and the files are in the correct order. However, the search results
> > are not listed in the order by date. You can take a look at this
> > collection at:
> > http://test.aladin.wrlc.org/gsdl/collect/torture/torture.shtml
> >
> >
> >
> > The date is displayed with the title so that you can see the date
> > clearly.
> >
> >
> >
> > Thank you very much!
> >
> >
> >
> >
> >
> > Allison
> >
> >
> >
> >
> >