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

Spellchecker correctlySpelled flag is improperly false in many cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • spellchecker
    • None

    Description

      I issued a request to the /spell request handler with no misspellings, but the response still have a value of "false" for the "correctlySpelled" flag.

      Using the Solr 4.0 example, I added some mini documents:

      curl http://localhost:8983/solr/update?commit=true -H 'Content-type:application/csv' -d '
      id,name
      spel-1,aardvark abacus ball bill cat cello
      spel-2,abate accord band bell cattle check
      spel-3,adorn border clean clock'
      

      Then I issued this request to the /spell handler:

      curl "http://localhost:8983/solr/spell/?q=abate&indent=true"
      

      The response indicates that no corrections were needed, but the "correctlySpelled" flag is "false" when it should be "true".

      <lst name="spellcheck">
        <lst name="suggestions">
          <bool name="correctlySpelled">false</bool>
        </lst>
      </lst>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jkrupan Jack Krupansky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: