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

ASF GitHub Bot commented on LUCY-300:
-------------------------------------

GitHub user rectang opened a pull request:

    https://github.com/apache/lucy/pull/41

    LUCY-300 Forbid fields above 2 GB.

    Check for fields above 2 GB before the document enters the any writer
    subcomponents below SegWriter.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rectang/lucy LUCY-300-max-field-2gb

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucy/pull/41.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #41
    
----
commit 451c469cfdea48be9ea6f21bb7437b26f98f2b9b
Author: Marvin Humphrey <[email protected]>
Date:   2016-04-20T23:46:42Z

    Forbid fields above 2 GB.
    
    Check for fields above 2 GB before the document enters the any writer
    subcomponents below SegWriter.

----


> Restrict max field length to 2 GB
> ---------------------------------
>
>                 Key: LUCY-300
>                 URL: https://issues.apache.org/jira/browse/LUCY-300
>             Project: Lucy
>          Issue Type: Bug
>            Reporter: Marvin Humphrey
>
> Install an early sanity check restricting field lengths to a maximum of 2 GB.
> Prior to 0.5.0, the maximum was no greater than 4 GB, because String had size 
> measured in uint32_t.  The practical size is generally much smaller anyway 
> because 1) the original string plus all its tokens takes up a lot of space, 
> and 2) Lucy is not ideal for huge documents.



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

Reply via email to