jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Diephouse <dan.diepho...@mulesource.com>
Subject Jackrabbit Lucene Query Syntax
Date Mon, 09 Feb 2009 19:17:21 GMT
This is probably a rather obvious question, but I'm trying to understand the
queries that Jackrabbit is putting together and figured I'd fire off an
email to see if anyone could help me out quick. My xpath query is
"//child[foo/@foo = 'bar']" and the lucene query is:
+(+(_:PROPERTIES:1:foo[bar _:PROPERTIES:1:foo[1:bar) +name() = {}foo)
+DescendantSelfAxisQuery(+ChildAxisQuery(_:PARENT:, {}testroot), name() =
{}child, 1)

Why are there two "_:PROPERTIES:1:foo[bar" ?

(I'm hacking on https://issues.apache.org/jira/browse/JCR-1659 which is why
I'm asking. Bonus points if you tell me what //child[../@foo = 'bar'] should
look like for a lucene query!)


Dan Diephouse
http://mulesource.com | http://netzooid.com/blog

View raw message