jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Van MOHAMED (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-6607) Oak facet indexes seems to only work for nt:base
Date Mon, 04 Sep 2017 08:53:01 GMT

    [ https://issues.apache.org/jira/browse/OAK-6607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16152279#comment-16152279
] 

Van MOHAMED commented on OAK-6607:
----------------------------------

[~diru],

Thanks a lot for your fast answer! I guess I won't be able to use Lucene facets in my implementation
then...

> Oak facet indexes seems to only work for nt:base
> ------------------------------------------------
>
>                 Key: OAK-6607
>                 URL: https://issues.apache.org/jira/browse/OAK-6607
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Van MOHAMED
>
> We are working in AEM and want to implement a Lucene facet index based on the definition
found here: https://jackrabbit.apache.org/oak/docs/query/lucene.html. However, it only works
if you limit the node type to nt:base. Here's a snippet of a working facet index definition.
> {code:xml}
>     <ntBaseFacetLucene
>         jcr:primaryType="oak:QueryIndexDefinition"
>         compatVersion="{Long}2"
>         reindex="{Boolean}false"
>         reindexCount="{Long}1"
>         type="lucene"
>         evaluatePathRestrictions="{Boolean}true"
>         async="async" >
>         <indexRules jcr:primaryType="nt:unstructured">
>             <nt:base jcr:primaryType="nt:unstructured">
>                 <properties jcr:primaryType="nt:unstructured">
>                     <contentType
>                         jcr:primaryType="nt:unstructured"
>                         propertyIndex="{Boolean}true"
>                         facets="{Boolean}true"
>                         analyzed="{Boolean}true"
>                         nodeScopeIndex="{Boolean}true"
>                         name="contentType" />
>                 </properties>
>             </nt:base>
>         </indexRules>
>     </ntBaseFacetLucene>
> {code}
> If we were to replace "nt:base" by "dam:Asset" for instance, and update the contentType
name property accordingly (in our case, updated in jcr:content/metadata/contentType), then
the facet wouldn't work anymore. In the logs, we would get the message "facets for {} not
yet indexed".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message