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

Context-Sensitive SpellCheck Collation is not really being tested on IndexBasedSpellChecker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • None
    • None

    Description

      Looks like a typo in the code. SpellCheckCollatorTest.testContextSensitiveCollate() has:

      

          //                     DirectSolrSpellChecker   IndexBasedSpellChecker
          String[] dictionary = {"direct",                "default_teststop" };
          for(int i=0 ; i<1 ; i++) {
          ... test stuff using dictionary[i]...
          }
      

      where it should be

      

          //                     DirectSolrSpellChecker   IndexBasedSpellChecker
          String[] dictionary = {"direct",                "default_teststop" };
          for(int i=0 ; i<=1 ; i++) {
          ... test stuff using dictionary[i]...
          }
      

      due to this, the tests are not being run with a IndexBasedSpellChecker.

      Attachments

        1. SOLR-4111.patch
          0.7 kB
          Tomas Eduardo Fernandez Lobbe

        Activity

          People

            jdyer James Dyer
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: