Shalin Shekhar Mangar created SOLR-8498:
-------------------------------------------

             Summary: 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


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to