You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by hsp <pi...@ibest.com.br> on 2006/06/30 21:33:34 UTC
Contains searches in sql sintax.
Hi;
I want to know if the fulltext searches returns the child nodes of the nodes that are the same type I put in sql.
For example, I have the following tree:
/
|_File1 (my:file)
|
|__jcr:content (nt:resource)
If I run the sql : SELECT * FROM my:file WHERE CONTAINS(*,'text'); there is no result,
But if I run the sql : SELECT * FROM nt:resource WHERE CONTAINS(*,'text'); there is a result,
Is there a way to do a search and get the kind of results like I need? (Specifying a kind of node type, that is not nt:resource but has a child nt:resource).
Thanks
Helio
Re: Contains searches in sql sintax.
Posted by Marcel Reutegger <ma...@gmx.net>.
hsp wrote:
> If I run the sql : SELECT * FROM my:file WHERE CONTAINS(*,'text');
> there is no result, But if I run the sql : SELECT * FROM nt:resource
> WHERE CONTAINS(*,'text'); there is a result,
>
> Is there a way to do a search and get the kind of results like I
> need? (Specifying a kind of node type, that is not nt:resource but
> has a child nt:resource).
no, not yet. When http://issues.apache.org/jira/browse/JCR-247 is
resolved this will be possible.
regards
marcel