[
https://issues.apache.org/jira/browse/OAK-6714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16180240#comment-16180240
]
Chetan Mehrotra edited comment on OAK-6714 at 9/26/17 4:50 AM:
---------------------------------------------------------------
[patch|^OAK-6714-v1.patch] for the same
[~catholicon] Please review. Note that this patch expose a flag
{{prependPathPrefix}} because when the strategy is used along with
LucenePropertyIndex then there I am trying to create a concatenated iterator
and later LucenePropertyIndex takes care of prepending the pathPrefix.
So this flag ensures that path returned by content strategy do not have path
prefix already added. So for a index defined at /content/oak:index/fooIndex
where pathPrefix is '/content' and indexed paths (absolute) /content/a would
return
* prependPathPrefix = true - /content/a
* prependPathPrefix = false - a
was (Author: chetanm):
[patch|^OAK-6714-v1.patch] for the same
[~catholicon] Please review
> Support non root index in ContentMirrorStoreStrategy
> ----------------------------------------------------
>
> Key: OAK-6714
> URL: https://issues.apache.org/jira/browse/OAK-6714
> Project: Jackrabbit Oak
> Issue Type: Technical task
> Components: property-index
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.8
>
>
> So far property indexes have been only supported for root indexes i.e. index
> defined under /oak:index. With OAK-6535 its possible to enable sync support
> for non root indexes.
> From impl
> [ContentMirrorStoreStrategy|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/property/strategy/ContentMirrorStoreStrategy.java#L151]
> supports specifying a pathPrefix. However there is no way to set this from
> outside.
> We should provide a way to set this and see if non root indexes can be
> supported
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)