You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/10/31 07:50:35 UTC
[jira] [Resolved] (OAK-2235) Lucene index not created if no node is
indexed
[ https://issues.apache.org/jira/browse/OAK-2235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra resolved OAK-2235.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 1.2)
1.1.2
Merged to 1.0 branch in http://svn.apache.org/r1635696
> Lucene index not created if no node is indexed
> ----------------------------------------------
>
> Key: OAK-2235
> URL: https://issues.apache.org/jira/browse/OAK-2235
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: oak-lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.0.8, 1.1.2
>
>
> If a Lucene property index is defined for a property which is not present in any of the nodes then {{LuceneIndexWriter}} would create any lucene index for that.
> For eg if we have an index of {{foo}} and none of the node has property {{foo}} set in that case {{LuceneIndexWriter}} would not create an {{IndexWriter}} and hence no directory would be created. Later when system performs a query like {{select jcr:path from nt:base where foo = 'bar'}} then {{LucenePropertyIndex}} would not participate in the query as no Lucene index would be found and system would revert to traversal.
> As a fix Lucene index should still be created even if it does not contain any document
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)