You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Paul Hussein <pa...@terma.191.it> on 2005/04/06 14:01:35 UTC

DASL search results ordering

Hi,

I am attempting to do a search where i list the contents of a directory, 
much like listContents but with DASL


I am ordering by resourcetype and then displayname using the XML below, 
however it does not seem to order at all.
Has anyone got a better example'dir' list or any idea why my ordering is 
not working.


Cheers

Paul.

           "<D:searchrequest xmlns:D =\"DAV:\">" +
            "<D:basicsearch>" +
            "<D:select>" +
            "<D:allprop/>" +
            "</D:select>" +
            "<D:from>" +
            "<D:scope>" +
            "<D:href>LOCATION</D:href>" +
            "<D:depth>1</D:depth>" +
            "</D:scope>" +
            "</D:from>" +
            "</D:basicsearch>" +
            "<D:orderby>" +
            "<D:order>" +
            "<D:prop>" +
            "<D:resourcetype/>" +
            "</D:prop>" +
            "<D:ascending/>" +
            "</D:order>" +
            "<D:order>" +
            "<D:prop>" +
            "<D:displayname/>" +
            "</D:prop>" +
            "<D:ascending/>" +
            "</D:order>" +
            "</D:orderby>" +
            "</D:searchrequest>";
   

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL search results ordering

Posted by Paul Hussein <pa...@terma.it>.
Thanks again. I like succint answers ;)

So, I guess the only other way to do it is then to drop down to native 
store searching.

So, I use mysql as my backen store, I can use mysql sql ?

This would solve my issue, but not be standard dasl.

Julian Reschke wrote:

> Paul Hussein wrote:
>
>> Thanks for the reply.
>>
>> OK, can I achieve the sorting first on type, then on name another way ?
>
>
> Nope. Not with standard DASL.
>
>> Some have displayname set, some dont. Can I sort on path?
>
>
> Nope.
>
> Best regards, Julian
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL search results ordering

Posted by Julian Reschke <ju...@gmx.de>.
Paul Hussein wrote:
> Thanks for the reply.
> 
> OK, can I achieve the sorting first on type, then on name another way ?

Nope. Not with standard DASL.

> Some have displayname set, some dont. Can I sort on path?

Nope.

Best regards, Julian

-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL search results ordering

Posted by Paul Hussein <pa...@terma.it>.
Thanks for the reply.

OK, can I achieve the sorting first on type, then on name another way ?

Some have displayname set, some dont. Can I sort on path?

Cheers

Paul.

Julian Reschke wrote:

> Paul Hussein wrote:
>
>> Hi,
>>
>> I am attempting to do a search where i list the contents of a 
>> directory, much like listContents but with DASL
>>
>>
>> I am ordering by resourcetype and then displayname using the XML 
>> below, however it does not seem to order at all.
>> Has anyone got a better example'dir' list or any idea why my ordering 
>> is not working.
>>
>>
>> Cheers
>>
>> Paul.
>>
>>           "<D:searchrequest xmlns:D =\"DAV:\">" +
>>            "<D:basicsearch>" +
>>            "<D:select>" +
>>            "<D:allprop/>" +
>>            "</D:select>" +
>>            "<D:from>" +
>>            "<D:scope>" +
>>            "<D:href>LOCATION</D:href>" +
>>            "<D:depth>1</D:depth>" +
>>            "</D:scope>" +
>>            "</D:from>" +
>>            "</D:basicsearch>" +
>>            "<D:orderby>" +
>>            "<D:order>" +
>>            "<D:prop>" +
>>            "<D:resourcetype/>" +
>>            "</D:prop>" +
>>            "<D:ascending/>" +
>>            "</D:order>" +
>>            "<D:order>" +
>>            "<D:prop>" +
>>            "<D:displayname/>" +
>>            "</D:prop>" +
>>            "<D:ascending/>" +
>>            "</D:order>" +
>>            "</D:orderby>" +
>>            "</D:searchrequest>";
>>  
>
>
> a) You can't order on DAV:resourcetype (see 
> <http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.5.4>). 
>
>
> b) Do those resources actually *have* DAV:displayname properties set?
>
> Best regards, Julian
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: DASL search results ordering

Posted by Julian Reschke <ju...@gmx.de>.
Paul Hussein wrote:
> Hi,
> 
> I am attempting to do a search where i list the contents of a directory, 
> much like listContents but with DASL
> 
> 
> I am ordering by resourcetype and then displayname using the XML below, 
> however it does not seem to order at all.
> Has anyone got a better example'dir' list or any idea why my ordering is 
> not working.
> 
> 
> Cheers
> 
> Paul.
> 
>           "<D:searchrequest xmlns:D =\"DAV:\">" +
>            "<D:basicsearch>" +
>            "<D:select>" +
>            "<D:allprop/>" +
>            "</D:select>" +
>            "<D:from>" +
>            "<D:scope>" +
>            "<D:href>LOCATION</D:href>" +
>            "<D:depth>1</D:depth>" +
>            "</D:scope>" +
>            "</D:from>" +
>            "</D:basicsearch>" +
>            "<D:orderby>" +
>            "<D:order>" +
>            "<D:prop>" +
>            "<D:resourcetype/>" +
>            "</D:prop>" +
>            "<D:ascending/>" +
>            "</D:order>" +
>            "<D:order>" +
>            "<D:prop>" +
>            "<D:displayname/>" +
>            "</D:prop>" +
>            "<D:ascending/>" +
>            "</D:order>" +
>            "</D:orderby>" +
>            "</D:searchrequest>";
>  

a) You can't order on DAV:resourcetype (see 
<http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html#rfc.section.5.5.4>).

b) Do those resources actually *have* DAV:displayname properties set?

Best regards, Julian


-- 
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org