Re: [greenstone-users] More sort issues

From Katherine Don
DateFri, 22 Apr 2005 10:26:40 +1200
Subject Re: [greenstone-users] More sort issues
In-Reply-To (4266BB7A-30800-telus-net)
Hi Jenn

Do you still have the sorting problem?

Actually, when you are doing a boolean search, the results are not
sorted - they are returned in build order. Sections appear to be sorted
because they are added to the index in order.

However, you should still get proper numeric sorting with AZCompactList
and AZList as long as the metadata is purely numeric.
eg "page 23" will sort before "page 3", but "23" will sort after "3".

I just tried with AZlist, on a metadata that had values {2, 3, 4, 5, 33,
42, kath} and it sorted fine.

Regards,
Katherine

Jenn Cole wrote:
> Thanks John,
>
> I redid all of my classifiers to use the AZCompactList and I still get
> the same problem. I can get the sort to work properly if I have it sort
> by another field which is just numeric and I add a 0 infront of the one
> and two digit numbers, the problem here is I have many documents that I
> have added and I don't want to have to go through each page to add
> another metadata field. Is there a way I have sort my classifier the
> way it is sorted when doing a boolean search?
>
> Jenn Cole
>
> John R. McPherson wrote:
>
>> On Wed, Apr 20, 2005 at 11:12:15AM -0700, Jenn Cole wrote:
>>
>>
>>> Hi Michael,
>>>
>>> I was happy to see the new release of Greenstone has solved some of
>>> the sorting issues that I was having with my collections. However,
>>> there is still one problem with the AZCompactSection classifier
>>> sort. It is sorting my page numbers, but not in numeric order. For
>>> example, pages for one entry in a classifier looks like this: 2, 3,
>>> 32, 4, 5, 6.
>>> I have noticed that when I do a boolean ('all') search for the same
>>> entry it is sorted numerically, ie. 2, 3, 4, 5, 6, 32. From this I
>>> gather that Greenstone has the capabilities to do a proper
>>> alphanumeric sort. How can I get this sort working for my classifiers.
>>>
>>
>>
>> Some classifiers, such as AZList and AZCompactList check if values
>> are numeric and if so does a numeric comparison on them, otherwise
>> do an alphabetic sort on them.
>>
>> I don't think the AZCompactSectionList classifier is really properly
>> supported anymore... the AZCompactList classifier supports doing
>> sections with the "-doclevel section" option. I think the
>> AZCompactSectionList classifier was accidentally created instead of
>> adding a bugfix to the AZCompactList classifier.
>>
>> John
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> greenstone-users mailing list
>> greenstone-users@list.scms.waikato.ac.nz
>> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>>
>
>
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>