lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From talha <talh...@gmail.com>
Subject Solr spell check not showing any suggestions for other language
Date Wed, 05 Aug 2015 10:20:08 GMT
Solr spell check is not showing any suggestions for other language.I have
indexed mutli-languages (english and bangla) in same core.It's showing
suggestions for wrongly spelt english word but in case of wrongly spelt
bangla word it showing "correctlySpelled = false" but not showing any
suggestions for it.

Please check my configuration for spell check below

solrconfig.xml

    <requestHandler name="/select" class="solr.SearchHandler">
      <lst name="defaults">

        <str name="echoParams">explicit</str>
        <int name="rows">10</int>
        <str name="df">product_name</str>

        <str name="spellcheck">on</str>
        <str name="spellcheck.dictionary">default</str>
        <str name="spellcheck.dictionary">wordbreak</str>
        <str name="spellcheck.extendedResults">true</str>
        <str name="spellcheck.count">5</str>
        <str name="spellcheck.alternativeTermCount">2</str>
        <str name="spellcheck.maxResultsForSuggest">5</str>
        <str name="spellcheck.collate">true</str>
        <str name="spellcheck.collateExtendedResults">true</str>
        <str name="spellcheck.maxCollationTries">5</str>
        <str name="spellcheck.maxCollations">3</str>

      </lst>
      <arr name="last-components">
        <str>spellcheck</str>
      </arr>
    </requestHandler>
    <searchComponent name="spellcheck" class="solr.SpellCheckComponent">

      <str name="queryAnalyzerFieldType">text_suggest</str>

      <lst name="spellchecker">
        <str name="name">default</str>
        <str name="field">suggest</str>
        <str name="classname">solr.DirectSolrSpellChecker</str>
        <str name="distanceMeasure">internal</str>
        <float name="accuracy">0.5</float>
      </lst>

      <lst name="spellchecker">
        <str name="name">wordbreak</str>
        <str name="field">suggest</str>
        <str name="classname">solr.WordBreakSolrSpellChecker</str>
        <str name="combineWords">true</str>
        <str name="breakWords">true</str>
        <int name="maxChanges">10</int>
        <int name="minBreakLength">5</int>
      </lst>
    </searchComponent>


schema.xml

    <fieldType name="text_suggest" class="solr.TextField"
positionIncrementGap="100">
          <analyzer>
            <tokenizer class="solr.UAX29URLEmailTokenizerFactory"/>
            <filter class="solr.StopFilterFactory" ignoreCase="true"
                    words="stopwords.txt"/>
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.ASCIIFoldingFilterFactory"/>
            <filter class="solr.EnglishPossessiveFilterFactory"/>
          </analyzer>
  </fieldType>




--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-spell-check-not-showing-any-suggestions-for-other-language-tp4220950.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message