You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2014/11/13 12:49:33 UTC
[jira] [Commented] (LUCENE-6012) AnalyzingSuggester exception
because of length restriction: java.lang.IllegalArgumentException: len must
be <= 32767; got 38751
[ https://issues.apache.org/jira/browse/LUCENE-6012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14209633#comment-14209633 ]
Michael McCandless commented on LUCENE-6012:
--------------------------------------------
Well, the limitation is 32767 bytes, internally, where the bytes contains the utf8 encoded suggestion, its analyzed form, the payload, the weight, etc. So the actual limit will be ~1/2 or less of 32767. But, still: this already seems like a massively long suggestion? I don't think we should increase it?
> AnalyzingSuggester exception because of length restriction: java.lang.IllegalArgumentException: len must be <= 32767; got 38751
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-6012
> URL: https://issues.apache.org/jira/browse/LUCENE-6012
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.10.1
> Reporter: Daniel Aschauer
> Labels: length, short, suggest
>
> 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)
--
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