[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-user
Subject:    Re: Dasl search with "<D:like>"
From:       Unico Hommes <unico () apache ! org>
Date:       2005-05-19 14:27:32
Message-ID: d6i7mu$kdf$1 () sea ! gmane ! org
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you are using a SQL backend (i.e. either JDBCStore or J2EEStore) and
the parameter 'use-rdbms-expression-factory' is set to true, then no.
Otherwise, AFAICS, it should work.

DASL queries are translated to SQL queries in the former case. The
problem is that SQL LIKE is not the same as DAV:like. There is however
the possibility of using SLIDE:propcontains which provides functionality
similar to DAV:like but without the wildcard matching stuff.

SLIDE:propcontains is translated to SQL LIKE. The current implementation
takes escapes the special characters in the passed literal and puts it
between % signs.

<S:propcontains>
  <D:prop><D:getcontenttype/></D:prop>
  <D:literal>image/_jpeg</D:literal>
</S:propcontains>

translates to

[select contenttype property] LIKE %image/\_jpeg%


Reviewing this now I am wondering if this is actually the best behavior.
Perhaps instead it should just pass the literal string literally (no pun
intended)

- --
Unico

Laurent Michenaud wrote:
> Is < like > supported by Slide ?
> 
>  
> 
> This doesnot work :
> 
> <D:like>
> 
> <D:prop><D:getcontenttype/></D:prop>
> 
> <D:literal>image/pjpeg</D:literal>
> 
> </D:like>
> 
>  
> 
> But this works :
> 
> <D:eq>
> 
> <D:prop><D:getcontenttype/></D:prop>
> 
> <D:literal>image/pjpeg</D:literal>
> 
> </D:eq>
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCjKJUcuec8tVNKAwRAqHAAKCfQp+mYYgjSzabaeOenbtLTTlmtQCg4N5H
F1TMuT+K4uU7NS5EhJ1JIts=
=PJu7
-----END PGP SIGNATURE-----


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic