jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Douglass" <douglass.d...@gmail.com>
Subject Re: source for XPath extensions?
Date Wed, 23 Aug 2006 13:03:58 GMT
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 <marcel.reutegger@gmx.net> 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
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message