Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
6.1, 6.2
-
None
-
None
Description
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)
Attachments
Issue Links
- Is contained by
-
LUCENE-7914 Add safeguards to RegExp.toAutomaton and Operations
- Closed