Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6201

Native Query syntax for rep:native unclear

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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:

      //element(*, app:Asset)[(rep:native('lucene', 'jcr:contnet/metdata/dc:title:(Hello OR World)'))]
      

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

      Attachments

        Issue Links

          Activity

            People

              teofili Tommaso Teofili
              empire29 David Gonzalez
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: