Chris de Kok created SOLR-9458:
----------------------------------

             Summary: 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.2, 6.1
            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.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to