GitHub user joeandaverde opened a pull request:

    https://github.com/apache/lucene-solr/pull/92

    Spellcheck component with extendedResults parameter will now include the 
frequency.

    URL:
    
    ```
    
http://solr:8080/solr/core/suggest?q=foo&spellcheck.extendedResults=true&wt=json
    ```
    
    BEFORE:
    ```
    {
       "responseHeader":{
          "status":0,
          "QTime":1
       },
       "spellcheck":{
          "suggestions":[
             "foo",
             {
                "numFound":4,
                "startOffset":0,
                "endOffset":4,
                "suggestion":[
                   "foobar"
                ]
             },
             "correctlySpelled",
             false
          ]
       }
    }
    ```
    AFTER:
    ```
    {
       "responseHeader":{
          "status":0,
          "QTime":0
       },
       "spellcheck":{
          "suggestions":[
             "foo",
             {
                "numFound":1,
                "startOffset":0,
                "endOffset":4,
                "suggestion":[
                   {
                      "word":"foobar",
                      "freq":1337
                   }
                ]
             },
             "correctlySpelled",
             false
          ]
       }
    }
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/joeandaverde/lucene-solr trunk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/92.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #92
    
----
commit f6428894094b2e2ba5cf8779a20a567c904a728e
Author: Joseph Andaverde <[email protected]>
Date:   2014-09-02T21:54:33Z

    Spellcheck component with extendedResults parameter will now include the 
frequency.
    
    URL:
    
    
http://solr:8080/solr/core/suggest?q=foo&spellcheck.extendedResults=true&wt=json
    
    BEFORE:
    
    {
       "responseHeader":{
          "status":0,
          "QTime":1
       },
       "spellcheck":{
          "suggestions":[
             "foo",
             {
                "numFound":4,
                "startOffset":0,
                "endOffset":4,
                "suggestion":[
                   "foobar"
                ]
             },
             "correctlySpelled",
             false
          ]
       }
    }
    
    AFTER:
    
    {
       "responseHeader":{
          "status":0,
          "QTime":0
       },
       "spellcheck":{
          "suggestions":[
             "foo",
             {
                "numFound":1,
                "startOffset":0,
                "endOffset":4,
                "suggestion":[
                   {
                      "word":"foobar",
                      "freq":1337
                   }
                ]
             },
             "correctlySpelled",
             false
          ]
       }
    }

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to