You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Eirikur Hrafnsson <ei...@idega.is> on 2005/01/31 14:39:20 UTC

DASL, how to exclude a directory?

 >>sent again to the developer list since I got no response on the 
userlist.
Hi,

how can I exclude a directory in a recursive/deep DASL search?
I want to search "/files" and subfolders but not "/files/cms".

Best Regards

Eirikur S. Hrafnsson, eiki@idega.is
Chief Software Engineer
Idega Software
http://www.idega.com


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


Re: DASL, how to exclude a directory?

Posted by Carlos Villegas <ca...@uniscope.jp>.
Honoré David wrote:
> Carlos Villegas wrote:
> 
>> Maybe you can add a condition like the following, in the corresponding 
>> basicsearch syntax:
>>
>> ... AND (NOT (DAV:displayname EQ "cms") )
>>
> I don't think that work. Because the slide implementation of basicsearch 
> (in slide 2.0; i don't know if heavy changes have been made since)
> create a pool with all nodes (from base uri with spécified depth) and 
> then remove all node that don't match where condition. ... ... if you 
> test displayname, /files/cms will not be returned but children can match.
> 
> ps: correct me if i don't understand the problem well ... but you don't 
> want to search/find any of cms and its decendants.
> 
Yes, you're right, that was stupid of me. So we need some kind of 
extension, and the proposed extension exclude-lastpathsegment only 
handles 'the last path segment' so it won't work in this case either.
A solution will be to expose the URL as a property of the resource so 
you can query it as a regular property using the like operator or whatever.

Carlos

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


Re: DASL, how to exclude a directory?

Posted by Eirikur Hrafnsson <ei...@idega.is>.
On 31.1.2005, at 20:36, Honoré David wrote:

> Carlos Villegas wrote:
>
>> Maybe you can add a condition like the following, in the 
>> corresponding basicsearch syntax:
>>
>> ... AND (NOT (DAV:displayname EQ "cms") )
>>
> I don't think that work. Because the slide implementation of 
> basicsearch (in slide 2.0; i don't know if heavy changes have been 
> made since)
> create a pool with all nodes (from base uri with spécified depth) and 
> then remove all node that don't match where condition. ... ... if you 
> test displayname, /files/cms will not be returned but children can 
> match.
Can't I use like '/files/cms%' ?
That should cover the children also right?


>
> ps: correct me if i don't understand the problem well ... but you 
> don't want to search/find any of cms and its decendants.
>
>> or use some property that uniquely identifies the /files/cms 
>> collection.
>> There seems to be a proposal for extending the scope element 
>> precisely to support this type of filtering based on URL patterns. 
>> New elements exclude-lastpathsegment and include-lastpathsegment are 
>> added but I don't think Slide supports them yet.
>>
>> Carlos
>>
>> Eirikur Hrafnsson wrote:
>>
>>>  >>sent again to the developer list since I got no response on the 
>>> userlist.
>>> Hi,
>>>
>>> how can I exclude a directory in a recursive/deep DASL search?
>>> I want to search "/files" and subfolders but not "/files/cms".
>>>
>>> Best Regards
>>>
>>> Eirikur S. Hrafnsson, eiki@idega.is
>>> Chief Software Engineer
>>> Idega Software
>>> http://www.idega.com
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
>
Best Regards

Eirikur S. Hrafnsson, eiki@idega.is
Chief Software Engineer
Idega Software
http://www.idega.com


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


Re: DASL, how to exclude a directory?

Posted by Honoré David <dh...@oma.be>.
Carlos Villegas wrote:

> Maybe you can add a condition like the following, in the corresponding 
> basicsearch syntax:
>
> ... AND (NOT (DAV:displayname EQ "cms") )
>
I don't think that work. Because the slide implementation of basicsearch 
(in slide 2.0; i don't know if heavy changes have been made since)
create a pool with all nodes (from base uri with spécified depth) and 
then remove all node that don't match where condition. ... ... if you 
test displayname, /files/cms will not be returned but children can match.

ps: correct me if i don't understand the problem well ... but you don't 
want to search/find any of cms and its decendants.

> or use some property that uniquely identifies the /files/cms collection.
> There seems to be a proposal for extending the scope element precisely 
> to support this type of filtering based on URL patterns. New elements 
> exclude-lastpathsegment and include-lastpathsegment are added but I 
> don't think Slide supports them yet.
>
> Carlos
>
> Eirikur Hrafnsson wrote:
>
>>  >>sent again to the developer list since I got no response on the 
>> userlist.
>> Hi,
>>
>> how can I exclude a directory in a recursive/deep DASL search?
>> I want to search "/files" and subfolders but not "/files/cms".
>>
>> Best Regards
>>
>> Eirikur S. Hrafnsson, eiki@idega.is
>> Chief Software Engineer
>> Idega Software
>> http://www.idega.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>




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


Re: DASL, how to exclude a directory?

Posted by Carlos Villegas <ca...@uniscope.jp>.
Maybe you can add a condition like the following, in the corresponding 
basicsearch syntax:

... AND (NOT (DAV:displayname EQ "cms") )

or use some property that uniquely identifies the /files/cms collection.
There seems to be a proposal for extending the scope element precisely 
to support this type of filtering based on URL patterns. New elements 
exclude-lastpathsegment and include-lastpathsegment are added but I 
don't think Slide supports them yet.

Carlos

Eirikur Hrafnsson wrote:
>  >>sent again to the developer list since I got no response on the 
> userlist.
> Hi,
> 
> how can I exclude a directory in a recursive/deep DASL search?
> I want to search "/files" and subfolders but not "/files/cms".
> 
> Best Regards
> 
> Eirikur S. Hrafnsson, eiki@idega.is
> Chief Software Engineer
> Idega Software
> http://www.idega.com
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
> 
> 


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


Re: DASL, how to exclude a directory?

Posted by Carlos Villegas <ca...@uniscope.jp>.

Eirikur Hrafnsson wrote:
> 
> Not even with something like
> where content = "asdfasdf" and url is not like '/files/cms%' ?
> 
It looks like in basicsearch the condition can only match properties or 
content but not the URL itself. As mentioned in my other reply there's a 
proposal to extend the scope element to support this but it's not yet 
implemented in Slide.

Carlos

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


Re: DASL, how to exclude a directory?

Posted by Eirikur Hrafnsson <ei...@idega.is>.
On 31.1.2005, at 14:30, Honoré David N. wrote:

> Le lundi 31 Janvier 2005 14:39, Eirikur Hrafnsson a écrit :
>>>> sent again to the developer list since I got no response on the
>>
>> userlist.
>> Hi,
>>
>> how can I exclude a directory in a recursive/deep DASL search?
>> I want to search "/files" and subfolders but not "/files/cms".
>>
> No way with DASL DAV:basicsearch
>
> 1) client side (dirty) solution :
>  search /files  depth:1
>  and search into each result execpt cms
> 2) server+client (standard-killing) solution :
>  write your own query language (or extends DAV:basicsearch)
Not even with something like
where content = "asdfasdf" and url is not like '/files/cms%' ?



>>
>> Best Regards
>>
>> Eirikur S. Hrafnsson, eiki@idega.is
>> Chief Software Engineer
>> Idega Software
>> http://www.idega.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
> -- 
> Honoré David
>
> ----------------------------
> "God is Real, unless declared Integer" - J.Allan Toogood, FORTRAN 
> programmer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org
>
>
>
Best Regards

Eirikur S. Hrafnsson, eiki@idega.is
Chief Software Engineer
Idega Software
http://www.idega.com


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


Re: DASL, how to exclude a directory?

Posted by "Honoré David N." <dh...@oma.be>.
Le lundi 31 Janvier 2005 14:39, Eirikur Hrafnsson a écrit :
>  >>sent again to the developer list since I got no response on the
>
> userlist.
> Hi,
>
> how can I exclude a directory in a recursive/deep DASL search?
> I want to search "/files" and subfolders but not "/files/cms".
>
No way with DASL DAV:basicsearch

1) client side (dirty) solution :
 search /files  depth:1
 and search into each result execpt cms
2) server+client (standard-killing) solution :
 write your own query language (or extends DAV:basicsearch)
>
> Best Regards
>
> Eirikur S. Hrafnsson, eiki@idega.is
> Chief Software Engineer
> Idega Software
> http://www.idega.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: slide-dev-help@jakarta.apache.org

-- 
Honoré David

----------------------------
"God is Real, unless declared Integer" - J.Allan Toogood, FORTRAN programmer


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