lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Bisht <bishtashis...@gmail.com>
Subject Spellchecker -File based vs Index based
Date Mon, 18 Mar 2019 06:56:05 GMT
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

Mime
View raw message