You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dominique Béjean (JIRA)" <ji...@apache.org> on 2013/02/21 15:56:15 UTC

[jira] [Comment Edited] (SOLR-3029) Poor json formatting of spelling collation info

    [ https://issues.apache.org/jira/browse/SOLR-3029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583242#comment-13583242 ] 

Dominique Béjean edited comment on SOLR-3029 at 2/21/13 2:55 PM:
-----------------------------------------------------------------

What about this issue ? It looks like nothing append during the last year.
Here is a sample of an invalid json response for the collation with Solr 4.1

{code}
"spellcheck":{
    "suggestions":{
      ...
      "correctlySpelled":false,
      "collation":"lang  louis",
      "collation":"long  loic",
      "collation":"land  loic"}},
      ...
{code} 

Collation should be an array
{code}
...
    "collation": [
        "lang  louis",
        "long  loic",
        "land  loic"
    ]
...
{code}

+1 !
                
      was (Author: dbejean):
    What about this issue ? It looks like nothing append during the last year.
Here is a sample of an invalid json response for the collation with Solr 4.1

{code}
"spellcheck":{
    "suggestions":{
      ...
      "correctlySpelled":false,
      "collation":"lang  louis",
      "collation":"long  loic",
      "collation":"land  loic"}},
      ...
{code} 

Collation should be an array
{code}
...
    "collation": [
        "land  loic",
        "long  loic",
        "land  loic"
    ]
...
{code}

+1 !

                  
> Poor json formatting of spelling collation info
> -----------------------------------------------
>
>                 Key: SOLR-3029
>                 URL: https://issues.apache.org/jira/browse/SOLR-3029
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 4.0-ALPHA
>            Reporter: Antony Stubbs
>             Fix For: 4.2, 5.0
>
>         Attachments: SOLR-3029.patch
>
>
> {noformat}
> "spellcheck": {
>     "suggestions": [
>     "dalllas",
>     {
> <snip>
>         {
>             "word": "canallas",
>             "freq": 1
>         }
>         ]
>     },
>     "correctlySpelled",
>     false,
>     "collation",
>     "dallas"
>     ]
> }
> {noformat}
> The correctlySpelled and collation key/values are stored as consecutive elements in an array - quite odd. Is there a reason isn't not a key/value map like most things?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org