[
https://issues.apache.org/jira/browse/OAK-6201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17157472#comment-17157472
]
Konrad Windszus commented on OAK-6201:
--------------------------------------
A page for how JCR properties are translated to field names in Lucene and Solr
would be highly appreciated. [~teofili] Would you be able to come up with
something in the near future?
> 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
> Assignee: Tommaso Teofili
> 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
(v8.3.4#803005)