lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-8498) Improve error message when a large value is stored in an indexed string field
Date Wed, 06 Jan 2016 22:20:39 GMT

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

ASF subversion and git services commented on SOLR-8498:
-------------------------------------------------------

Commit 1723419 from shalin@apache.org in branch 'dev/trunk'
[ https://svn.apache.org/r1723419 ]

SOLR-8498: Improve error message when a large value is stored in an indexed string field

> Improve error message when a large value is stored in an indexed string field
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-8498
>                 URL: https://issues.apache.org/jira/browse/SOLR-8498
>             Project: Solr
>          Issue Type: Improvement
>          Components: Schema and Analysis
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>            Priority: Trivial
>             Fix For: 5.5, Trunk
>
>         Attachments: SOLR-8498.patch
>
>
> Right now we get the following error if a large text field is indexed into a string field:
> {code}
> SimplePostTool: WARNING: Response: {"responseHeader":{"status":400,"QTime":580},"error":{"msg":"Exception
writing document id dbc798be-9a6e-48b7-8721-31f84e89c10b to the index; possible analysis error.","code":400}}
> {code}
> Neither the offending field is mentioned, nor the common cause of such a problem.
> I will change the error message to say e.g.:
> {code}
> SimplePostTool: WARNING: Response: {"responseHeader":{"status":400,"QTime":109},"error":{"msg":"Exception
writing document id dbc798be-9a6e-48b7-8721-31f84e89c10b to the index; possible analysis error:
Document contains at least one immense term in field=\"content\" (whose UTF8 encoding is longer
than the max length 32766), all of which were skipped.  Please correct the analyzer to not
produce such terms.  The prefix of the first immense term is: '[73, 115, 32, 82, 101, 102,
111, 114, 109, 101, 100, 32, 84, 104, 101, 111, 108, 111, 103, 121, 32, 67, 97, 116, 104,
111, 108, 105, 99, 105]...', original message: bytes can be at most 32766 in length; got 35873.
Perhaps the document has an indexed string field (solr.StrField) which is too large","code":400}}
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message