[
https://issues.apache.org/jira/browse/OAK-12195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18086263#comment-18086263
]
Julian Reschke commented on OAK-12195:
--------------------------------------
Yes, that is an interesting idea.
See
https://javadoc.io/doc/nl.vpro/jcr-criteria/2.1/overview-summary.html
(old).
Read-only should be relatively simple. As this is not specific to Oak, I would
recommend to move it to Jackrabbit. The issue with wrappers like these is that
they need continuous support. See, for instance, the JCA and VFS projects over
there. They started as nice ideas and now sit there unmaintained.
> Add W3C DOM wrapper for JCR to enable rich XPath content extraction
> -------------------------------------------------------------------
>
> Key: OAK-12195
> URL: https://issues.apache.org/jira/browse/OAK-12195
> Project: Jackrabbit Oak
> Issue Type: New Feature
> Reporter: Benjamin Habegger
> Priority: Major
>
> JCR shares many commonalities with the W3C's wide spread Document Object
> Model: a tree of nodes with attributes/properties, namespaces, etc. Robust
> implementation of the DOM exist in many programming languages and in
> particular in Java via Apache Xalan project. DOM has been built along side
> the XML/HTML and widely used in browsers but not strongly tide to those
> serialization formats.
> Wrapping a JCR tree as a DOM tree would allow to leverage existing widely
> spread and well tested code at the mere cost of implementing a wrapper. In
> particular this would allow to use a full-fledge and standard XPath
> expressions to be able to fetch JCR content.
> A particularly interesting application to such extraction would be to allow
> using XPath to define the content to be present in fulltext search fields.
> Currently, the way fulltext field is filled is either too broad or not broad
> enough. For example, aggregates pull in all the content withing a JCR and
> does not allow filtering parts of the interesting content for search for
> content not interesting.
> This ticket proposes to introduce a DOM wrapper for a JCR tree, in particular
> allowing to retrieve content from a JCR using full-fledged XPath.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)