You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2015/04/10 15:18:13 UTC

[jira] [Comment Edited] (OAK-2750) Indexing for sorting can fail if value is too long

    [ https://issues.apache.org/jira/browse/OAK-2750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14489604#comment-14489604 ] 

Tommaso Teofili edited comment on OAK-2750 at 4/10/15 1:18 PM:
---------------------------------------------------------------

fixed in r1672642,4


was (Author: teofili):
fixed in r1672644

> Indexing for sorting can fail if value is too long
> --------------------------------------------------
>
>                 Key: OAK-2750
>                 URL: https://issues.apache.org/jira/browse/OAK-2750
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: oak-solr
>    Affects Versions: 1.2
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 1.3.0
>
>
> 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.
> {noformat}
> Caused by: java.lang.IllegalArgumentException: DocValuesField "jcr:data_string_sort" is too large, must be <= 32766
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)