Hi,

you really should implement LIKE. propcontains was introduced as
internal bypass, as restrictions in Tamino would have made it really
hard to implement LIKE as specified in a performant manner ;-)  With
RDBMS it should be not too hard implementing LIKE. propcontains is not
in the DASL spec!

regards,
Martin



-----Original Message-----
Date: Tue, 10 Aug 2004 19:37:21 +0200
Subject: RE: How to search the contents of properties?
From: "Ryan Rhodes" <[EMAIL PROTECTED]>
To: "'Slide Developers Mailing List'" <[EMAIL PROTECTED]>

What *?!  That's not in the spec.... but it really needs to be.

Wow... thanks a lot Guido.

-Ryan

-----Original Message-----
From: Guido Casper [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 10, 2004 2:45 AM
To: Slide Developers Mailing List
Subject: Re: How to search the contents of properties?

Ryan Rhodes wrote:
> I'm trying to implement full text search for properties.  The DASL
spec
says
> about CONTAINS:
>
>
>
> "This operator implicitly searches against the text content of a
resource,
> not against content of properties."
>
>
>
> Should I be implementing the LIKE operator instead?
>
>
>
> I need to search the contents of the resources, but I need to combine
that
> with a search against the content of properties.
>
>
>
> Exampe:  If I have a property AUTHOR = Ryan Shae Rhodes, I also need
to be
> able to search for only Shae and get the resource.

try:

<SLIDE:propcontains xmlns:SLIDE="http://jakarta.apache.org/slide/";>
   <D:prop>
     <D:AUTHOR/>
   </D:prop>
   <D:literal>Shae</D:literal>
</SLIDE:propcontains>

If you use RDBMSExpressionFactory you should use:

<D:propcontains>
   <D:prop>
     <D:AUTHOR/>
   </D:prop>
   <D:literal>Shae</D:literal>
</D:propcontains>

for better performance. (I think BasicExpressionFactory does not yet
support <D:propcontains/>)

HTH
Guido

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to