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.