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

FSTLookup returns one less suggestion than it should when onlyMorePopular=true

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3, 3.4
    • Fix Version/s: 3.5
    • Component/s: spellchecker
    • Labels:
      None

      Description

      I'm using the Suggester. When I switched from TSTLookup to FSTLookup, I noticed that it returned one fewer suggestion than what I asked for. I have spellcheck.onlyMorePopular=true; when I set it to false, I see the correct count. Another aspect of the bug is that this off-by-one bug only seems to occur when my suggestion has an exact match.

        Attachments

        1. SOLR-2762_FSTLookup_off_by_one.patch
          2 kB
          David Smiley
        2. SOLR-2762_FSTLookup_off_by_one.patch
          2 kB
          David Smiley
        3. SOLR-2762.patch
          6 kB
          Dawid Weiss
        4. SOLR-2762.patch
          6 kB
          Dawid Weiss
        5. SOLR-2762.patch
          4 kB
          Dawid Weiss

          Issue Links

            Activity

              People

              • Assignee:
                dweiss Dawid Weiss
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: