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

IndexBasedSpellChecker "thresholdTokenFrequency" fails with a ClassCastException on startup

    XMLWordPrintableJSON

Details

    Description

      When parsing the configuration for thresholdTokenFrequency", the IndexBasedSpellChecker tries to pull a Float from the DataConfig.xml-derrived NamedList. However, this comes through as a String. Therefore, a ClassCastException is always thrown whenever this parameter is specified. The code ought to be doing "Float.parseFloat(...)" on the value.

      This looks like a nice feature to use in cases the data contains misspelled or rare words leading to spurious "correct" queries. I would have liked to have used this with a project we just completed however this bug prevented that. This issue came up recently in the User's mailing list so I am raising an issue now.

      Attachments

        1. SOLR-2571.solr3.2.patch
          0.7 kB
          James Dyer
        2. SOLR-2571.patch
          0.7 kB
          James Dyer
        3. SOLR-2571.patch
          7 kB
          James Dyer
        4. SOLR-2571.patch
          7 kB
          James Dyer
        5. SOLR-2571.patch
          10 kB
          James Dyer

        Activity

          People

            rcmuir Robert Muir
            jdyer James Dyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: