Okay,

So at the moment its not possible ;-)

In the mean time, we will be doing the sorting ourselves.

We did hope that srw could do it. Specially because it might performe 
better, if the sorting was done in the early stage.

Regards
Klaus


LeVan,Ralph wrote:
> Sigh.  I wish I had a really good answer for you, but I don't.
>
> Sorting is tricky, in a lot of senses.  I've implemented it a couple of
> ways already in my SRW server and taken them back out.  The problem is
> partly that I've not come up with a good abstraction for sort and partly
> that the SRW community hasn't come to any agreement on how sort should
> be done.
>
> The solution that I was happiest with caused the SRW server to do all
> the sorting.  You would pass an XPath to a field to be sorted on from
> the records in the result set.  I'd use the content of that field as the
> sort key.  That's clean and useful, but not very efficient.  The
> efficient implementation would be to use the underlying database to do
> the sorting of the result set.
>
> To support that, I pass the sort request to the result set objects so
> they can do what they need to when the query is executed.  But, I've got
> no code in place in either my DSpace or Lucene database interfaces to
> take advantage of it.  I've not even looked into how I might do a sort
> in either of those environments.
>
> If someone out there can point me to a good example of getting those
> databases to do a sort, I'll see if I can't get some sort of sort
> support implemented.  At the very least, I should be returning a
> diagnostic right now saying that I don't support it.
>
> Ralph
>
>   
>> -----Original Message-----
>> From: Klaus Hessellund [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, November 05, 2008 3:15 AM
>> To: [email protected]
>> Subject: [Dspace-tech] How do we sort in SRW? (dspace 1.5.1)
>>
>> Hi list,
>>
>> We are using SRW with dspace. Things works fine. We are able to search
>> for things using lucene indexes.
>>
>> However, we are not able to do sorting.
>>
>> We tried to add sortKeys to the url, but no matter what we try, there
>> seems to be no sorting at all.
>>
>> Example url :
>>
>>
>>     
> http://ourhost/srw/search/DSpace?query=dc.creator+%3D+%22hans%22&versio
>   
> n=1.1&operation=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2Fd
>   
>> c-
>>
>>     
> v1.1&maximumRecords=10&startRecord=1&resultSetTTL=300&recordPacking=xml
>   
>> &recordXPath=&sortKeys=year
>>
>> Here we search for author "Hans" and try to sort on year. We also
>>     
> tried
>   
>> to sort using other fields, like dc.title and so on, but no change.
>>
>>
>> Regards,
>>
>> Klaus
>>
>>
>>     
> -----------------------------------------------------------------------
>   
>> --
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>     
>
>
>
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to