"Perhaps the document has an indexed string field (solr.StrField) which is too large solr.field”
string based fields have a limit of 32K. If you mean the field to be searchable, a 32K field _as a single term_ makes little sense. You probably want to change the fieldType to a text-based field that’s analyzed (i.e. broken up into tokens), the default schemas have a text_general pre-defined type that you can use to get started. Best, Erick > On Aug 12, 2020, at 7:20 AM, Atri Sharma <[email protected]> wrote: > >> >> >> >> Hi Team, >> >> >> I am using solr library to be indexing my documents. It is working as >> expected but sometimes I am getting below error. Could you please help with >> this? >> >> >> >> The document contains at least one immense term in field="FileContent_en***" >> (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: '[110, 97, 109, 101, 61, 34, 97, 99, 113, 117, >> 105, 115, 105, 116, 105, 111, 110, 115, 116, 111, 114, 101, 34, 62, 101, >> 106, 122, 107, 118, 118]...', original message: bytes can be at most 32766 >> in length; got 422071. Perhaps the document has an indexed string field >> (solr.StrField) which is too large solr.field >> >> >> >> >> >> Thanks >> >> Rajesh Somvanshi > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
