Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9458

DocumentDictionaryFactory StackOverflowError on many documents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.1, 6.2
    • None
    • Suggester
    • 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

          Activity

            People

              Unassigned Unassigned
              cdekok Chris de Kok
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: