Thanks Marcel, I had been looking at just the class names.

My question stems from the recent threads discussing difficulities
translating DASL basicsearch into XPath. How feasible would a "jcr:depth"
extension be?

On 8/23/06, Marcel Reutegger <[EMAIL PROTECTED]> wrote:

here are some pointers:

The abstract query tree build from the two supported syntax XPath and
SQL can be found in the package: org.apache.jackrabbit.core.query.
Have a look at the QueryNode type hierarchy.

The one you are looking for is RelationQueryNode with an operation set
to OPERATION_LIKE.

The actual runtime implementation to execute the query is index
specific. The current implementation uses lucene in package
org.apache.jackrabbit.core.query.lucene.

The LuceneQueryBuilder translates a RelationQueryNode (of type like)
into a WildcardQuery, which is an implementation of the lucene Query
class.

regards
  marcel

Doug Douglass wrote:
> I expected find the source for the XPath extensions (e.g., jcr:like) in
> either the javax.jcr.query or the org.apache.jackrabbit.query packages
or
> their sub-packages, but not luck.
>
> Any one care to point me in the right direction?
>
> TIA,
> Doug
>

Reply via email to