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

SpellCheckCollator.collate method creates the a PossibilityIterator with maxTries instead of maxCollations

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3, 4.0-ALPHA
    • Fix Version/s: 4.10, 6.0
    • Component/s: spellchecker
    • Labels:
      None

      Description

      Class SpellCheckCollator creates a new possibility iterator based on the spellcheck results. The iterator is created with:
      PossibilityIterator possibilityIter = new PossibilityIterator(result.getSuggestions(), maxTries, maxEvaluations);

      The issue is maxTries, should be maxCollations. Correct me if I'm wrong.

        Attachments

        1. SOLR-2853.patch
          0.8 kB
          Matt Traynham
        2. SOLR-2853.patch
          2 kB
          James Dyer

          Activity

            People

            • Assignee:
              jdyer James Dyer
              Reporter:
              mtraynham Matt Traynham
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: