You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Walter Underwood (JIRA)" <ji...@apache.org> on 2017/08/16 18:28:00 UTC
[jira] [Commented] (SOLR-9458) DocumentDictionaryFactory
StackOverflowError on many documents
[ https://issues.apache.org/jira/browse/SOLR-9458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16129210#comment-16129210 ]
Walter Underwood commented on SOLR-9458:
----------------------------------------
I'm getting the same failure using FileDictionaryFactory.
{code:xml}
<lst name="suggester">
<str name="name">concepts_fuzzy</str>
<str name="lookupImpl">FuzzyLookupFactory</str>
<str name="exactMatchFirst">true</str>
<str name="sourceLocation">suggest-concepts.txt</str>
<str name="indexPath">suggest_subjects_infix</str>
<str name="suggestAnalyzerFieldType">text_lower</str>
<str name="maxEdits">1</str>
<str name="transpositions">true</str>
<str name="buildOnCommit">false</str>
<str name="buildOnOptimize">false</str>
<str name="buildOnStartup">true</str>
</lst>
{code}
> DocumentDictionaryFactory StackOverflowError on many documents
> --------------------------------------------------------------
>
> Key: SOLR-9458
> URL: https://issues.apache.org/jira/browse/SOLR-9458
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Suggester
> Affects Versions: 6.1, 6.2
> Reporter: Chris de Kok
>
> When using the FuzzyLookupFactory in combinarion with the DocumentDictionaryFactory it will throw a stackoverflow trying to build the dictionary.
> Using the HighFrequencyDictionaryFactory works ok but behaves very different.
> ```
> <searchComponent name="suggest" class="solr.SuggestComponent">
> <lst name="suggester">
> <str name="name">suggest</str>
> <str name="field">suggestions</str>
> <str name="suggestAnalyzerFieldType">suggestions</str>
> <str name="lookupImpl">FuzzyLookupFactory</str>
> <str name="dictionaryImpl">DocumentDictionaryFactory</str>
> <str name="storeDir">suggest_fuzzy</str>
> <str name="exactMatchFirst">true</str>
> <str name="buildOnStartup">false</str>
> <str name="buildOnCommit">false</str>
> <str name="buildOnOptimize">true</str>
> <float name="threshold">0</float>
> </lst>
> ````
> null:java.lang.StackOverflowError
> at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1311)
> at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1311)
> at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1311)
> at org.apache.lucene.util.automaton.Operations.topoSortStatesRecurse(Operations.java:1311)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org