Guido Casper wrote:
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/>)
Oh, this should be in the slide namespace actually. I will change RDBMSExpressionFactory accordingly so the syntax will be the same for in both cases.
-- Unico
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
