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

Indexing for sorting can fail if value is too long

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.0.14, 1.2.2, 1.3.0, 1.4
    • Component/s: solr
    • Labels:
      None

      Description

      While indexing e.g. large binaries' texts indexing can fail during the indexing of the field used for sorting due to an hard limit in size for DocValues.

      Caused by: java.lang.IllegalArgumentException: DocValuesField "jcr:data_string_sort" is too large, must be <= 32766
      

      This can be easily workarounded by switching from using docValues=true to false and from stored=false to true in the schema.xml, however it'd be good to avoid such long text in the sort fields as it's very unlikely that such fields will be used in practice and therefore limit the sort field to index e.g. the first 1024 text chars.

        Attachments

          Activity

            People

            • Assignee:
              teofili Tommaso Teofili
              Reporter:
              teofili Tommaso Teofili
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: