Let me know if I should open a JIRA issue for this. Thanks.

On Tue, Oct 17, 2017 at 10:40 AM, Arnold Bronley <arnoldbron...@gmail.com>
wrote:

> I tried spellcheck.q=polt and q=tag:polt. I get collations, but they are
> only for polt and not tag:polt. Because of that, the hits that I get back
> are for frequency of plot and not frequency of tag:plot
>
> {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 20,
>     "params": {
>       "spellcheck.collateExtendedResults": "true",
>       "indent": "true",
>       "spellcheck.maxCollations": "3",
>       "spellcheck.maxCollationTries": "3",
>       "spellcheck.extendedResults": "true",
>       "q": "tag:polt",
>       "spellcheck.q": "polt",
>       "spellcheck": "true",
>       "spellcheck.accuracy": "0.72",
>       "spellcheck.onlyMorePopular": "true",
>       "spellcheck.count": "7",
>       "wt": "json",
>       "spellcheck.collate": "true"
>     }
>   },
>   "response": {
>     "numFound": 0,
>     "start": 0,
>     "docs": [
>
>     ]
>   },
>   "spellcheck": {
>     "suggestions": [
>       "polt",
>       {
>         "numFound": 7,
>         "startOffset": 0,
>         "endOffset": 4,
>         "origFreq": 0,
>         "suggestion": [
>           {
>             "word": "plot",
>             "freq": 5934
>           },
>           {
>             "word": "port",
>             "freq": 495
>           },
>           {
>             "word": "post",
>             "freq": 233
>           },
>           {
>             "word": "poly",
>             "freq": 216
>           },
>           {
>             "word": "pole",
>             "freq": 175
>           },
>           {
>             "word": "poll",
>             "freq": 12
>           },
>           {
>             "word": "polm",
>             "freq": 9
>           }
>         ]
>       }
>     ],
>     "correctlySpelled": false,
>     "collations": [
>       "collation",
>       {
>         "collationQuery": "plot",
>         "hits": 10538,
>         "misspellingsAndCorrections": [
>           "polt",
>           "plot"
>         ]
>       },
>       "collation",
>       {
>         "collationQuery": "port",
>         "hits": 754,
>         "misspellingsAndCorrections": [
>           "polt",
>           "port"
>         ]
>       },
>       "collation",
>       {
>         "collationQuery": "post",
>         "hits": 626,
>         "misspellingsAndCorrections": [
>           "polt",
>           "post"
>         ]
>       }
>     ]
>   }
> }
>
> On Tue, Oct 17, 2017 at 5:01 AM, alessandro.benedetti <
> a.benede...@sease.io> wrote:
>
>> But you used :
>>
>> "spellcheck.q": "tag:polt",
>>
>> Instead of :
>> "spellcheck.q": "polt",
>>
>> Regards
>>
>>
>>
>> -----
>> ---------------
>> Alessandro Benedetti
>> Search Consultant, R&D Software Engineer, Director
>> Sease Ltd. - www.sease.io
>> --
>> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>>
>
>

Reply via email to