Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6012

AnalyzingSuggester exception because of length restriction: java.lang.IllegalArgumentException: len must be <= 32767; got 38751

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.10.1
    • None
    • None
    • New

    Description

      I want to use a suggester but every time i want to build the index I get an exception.
      As the exception comes from AnalyzingSuggester all kind of suggesters that are subclasses fail to build.
      By now I don't understand the code for the suggester well and thus was not able to track the error further down.

      OfflineSorter$ByteSequencesWriter tries to write the length of the bytearray which not exceed 32767 because it is a short.

      6877 [http-bio-8080-exec-2] ERROR org.apache.solr.core.SolrCore - java.lang.IllegalArgumentException: len must be <= 32767; got 38751
      at org.apache.lucene.util.OfflineSorter$ByteSequencesWriter.write(OfflineSorter.java:479)
      at org.apache.lucene.search.suggest.analyzing.AnalyzingSuggester.build(AnalyzingSuggester.java:496)
      at org.apache.lucene.search.suggest.Lookup.build(Lookup.java:190)

      Attachments

        Activity

          People

            Unassigned Unassigned
            daniel.aschauer Daniel Aschauer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: