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

Lucene index with 'analyzed=true' sometimes used by mistake

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.24, 1.2.8, 1.3.11
    • 1.0.24, 1.2.8, 1.3.11, 1.4
    • lucene, query
    • None

    Description

      A Lucene index with a property that is configured as "analyzed = true" is sometimes used by mistake. Example:

      oak:index/testLuceneIndex (oak:QueryIndexDefinition)
        compatVersion: 2
        type: lucene
        async: "async"
        indexRules (nt:unstructured)
          nt:base (nt:unstructured)
            properties (nt:unstructured)
              xyz (nt:unstructured)
                propertyIndex: true,
                analyzed: true,
                name: xyz
      
      query:
      /jcr:root/content//*[jcr:contains(., '1234')]
      

      The index is used, but the result does not contain nodes with properties abc = '1234'.

      Attachments

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              thomasm Thomas Mueller
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: