Two guesses:
1> you have something different in your spellcheck config .vs. index config.
2> you don’t have the word in your file for the file-based spellcheck, thus
     Solr has no way of knowing the word is correctly spelled.

> On Mar 17, 2019, at 11:56 PM, Ashish Bisht <bishtashis...@gmail.com> wrote:
> 
> Hi,
> 
> I am seeing difference in file based spellcheck and index based spellcheck
> implementations.
> 
> Using index based
> http://<Box>:8983/solr/SCSpell/spell?q=*intnet of
> things*&defType=edismax&qf=spellcontent&wt=json&rows=0&spellcheck=true&spellcheck.dictionary=*default*&q.op=AND
> 
> 
>  "suggestions":[
>      "intnet",{
>        "numFound":10,
>        "startOffset":0,
>        "endOffset":6,
>        "origFreq
> 
> 
> Suggestion get build up only for wrong word.
> 
> 
> But while suing file based,they get build up for right words too which
> messes collations
> 
> http://<Box>:8983/solr/SCSpell/spell?q=intnet%20of%20things&defType=edismax&qf=spellcontent&wt=json&rows=0&&spellcheck=true&spellcheck.dictionary=*file*&q.op=AND
> 
> "suggestion":["*internet*",
>          "contnet",
>          "intel",
>          "intent",
>          "intert",
>          "intelect",
>          "intended",
>          "intented",
>          "interest",
>          "botnets"]},
>      "*of*",{
>        "numFound":8,
>        "startOffset":7,
>        "endOffset":9,
>        "suggestion":["ofc",
>          "off",
>          "ohf",
>         .....
>          "soft"]},
> "*things*",{
>        "numFound":10,
>        "startOffset":10,
>        "endOffset":16,
>        "suggestion":["thing",
>          "brings",
>          "think",
>          "thinkers",
>          .....
> 
> 
> 
> Is there any property in file based which I use to fix this
> 
> 
> 
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to