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

Index function string-length should index size for binary properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.30.0
    • indexing
    • None

    Description

      For index definition

      <size
       jcr:primaryType="nt:unstructured"
       ordered="{Boolean}true"
       propertyIndex="{Boolean}true"
       type="Long"
       function="fn:string-length(jcr:content/@jcr:data)"/>
      

      Expected result: Index the size of @jcr:data

      Current result:

       ERROR o.a.j.o.p.i.l.LuceneDocumentMaker - Failed to calculate function value for [function, length, @jcr:content/jcr:data] ...
      java.lang.IllegalStateException: String is too long: 2325601444581057974
      

      Attachments

        Activity

          People

            thomasm Thomas Mueller
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: