lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Béjean (JIRA) <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-3029) Poor json formatting of spelling collation info
Date Thu, 21 Feb 2013 14:56:15 GMT

    [ 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


Mime
View raw message