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

Lucene index not created if no node is indexed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.8, 1.1.2
    • lucene
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              chetanm Chetan Mehrotra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: