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 "Thomas Mueller (Jira)" <ji...@apache.org> on 2020/04/30 13:08:00 UTC
[jira] [Comment Edited] (OAK-9046) Index function string-length
should index size for binary properties
[ https://issues.apache.org/jira/browse/OAK-9046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17096501#comment-17096501 ]
Thomas Mueller edited comment on OAK-9046 at 4/30/20, 1:07 PM:
---------------------------------------------------------------
PR: https://github.com/oak-indexing/jackrabbit-oak/pull/151
was (Author: tmueller):
PR: https://github.com/apache/jackrabbit-oak/pull/205
> Index function string-length should index size for binary properties
> --------------------------------------------------------------------
>
> Key: OAK-9046
> URL: https://issues.apache.org/jira/browse/OAK-9046
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: indexing
> Reporter: Thomas Mueller
> Assignee: Thomas Mueller
> Priority: Major
>
> For index definition
> {noformat}
> <size
> jcr:primaryType="nt:unstructured"
> ordered="{Boolean}true"
> propertyIndex="{Boolean}true"
> type="Long"
> function="fn:string-length(jcr:content/@jcr:data)"/>
> {noformat}
> Expected result: Index the size of @jcr:data
> Current result:
> {noformat}
> 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
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)