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

PhraseQuery fails due to missing posiion info in indexed fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.18
    • 0.19
    • lucene
    • None

    Description

      Following OAK-1487 I've introduced a regression in the indexing of fields on the Lucene index.
      There are some types of queries (the ones that use property restrictions) that cannot run anymore.

      /jcr:root/content/dam//*[jcr:contains(jcr:content/metadata/@dc:format, 'application/pdf')]

      Caused by: java.lang.IllegalStateException: field "dc:format" was indexed without position data; cannot run PhraseQuery (term=text)

      I could not reproduce this in an unit test so far.

      Attachments

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: