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

spellcheck.colate doesn't handle multiple tokens properly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.3
    • Component/s: spellchecker
    • Labels:
      None
    • Environment:

      tomcat

      Description

      originally posted as part of SOLR-572:

      https://issues.apache.org/jira/browse/SOLR-572?focusedCommentId=12608487#action_12608487

      the new spellcheck.collate feature seems to exhibit some strange behaviors when handed a query with multiple tokens.

      {
       "responseHeader":{
        "params":{
      	"q":"redbull air show"}},
        "spellcheck":{
         "suggestions":[
      	"redbull",[
      	 "suggestion",["redbelly"]],
      	"show",[
      	 "suggestion",["shot"]],
      	"collation","redbelly airshotw"]}}
      

      in this case, note the fields are incorrectly concatenated (no space between tokens, left over 'w' from input string)

      {
       "responseHeader":{
        "params":{
      	"q":"redbull air show",
      	"spellcheck.q":"redbull air show"}},
       "spellcheck":{
        "suggestions":[
      	"redbull air show",[
      	 "suggestion",["redbull singers"]],
      	"collation","redbull singersredbull air show"]}}
      

      this is slightly different - the suggestions are still concatenated without a space, but the collation is way off.

      --Geoff

        Attachments

        1. SOLR-606.patch
          4 kB
          Grant Ingersoll
        2. handler.component.SpellCheckComponent-collate-patch.txt
          1 kB
          Stefan Oestreicher

          Activity

            People

            • Assignee:
              gsingers Grant Ingersoll
              Reporter:
              geoff Geoffrey Young
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: