David Gonzalez created OAK-6201:
-----------------------------------

             Summary: Native Query syntax for rep:native unclear
                 Key: OAK-6201
                 URL: https://issues.apache.org/jira/browse/OAK-6201
             Project: Jackrabbit Oak
          Issue Type: Documentation
            Reporter: David Gonzalez
            Priority: Minor


I was trying to perform a few test queries against an Oak 1.6.x repository 
using the XPath with the rep:native(..) function and but could not get any to 
work.

I suspect my problem is with specifying the field, but i've tried a variety of 
permutations to no avail. 

For example, if tried to re-purpose the example XPath query to search over an 
asset's dc:title [1],

Generally, i think the documentation [2] is lacking in that 1) unclear on the 
syntax 2) unclear if i need to do anything special to Oak indexes 3) if only 
the provided lucene index will service these requests (these are all from a 
lucene POV, rather than Solr, though assume all the same considerations apply)

[1] Non-working: {code}
//element(*, app:Asset)[(rep:native('lucene', 
'jcr:contnet/metdata/dc:title:(Hello OR World)'))]
{code}

[2] http://jackrabbit.apache.org/oak/docs/query/query-engine.html#Native_Queries



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to