lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgy Nevsky <gnevsky.cn...@thomasnet.com>
Subject spellcheck.q issue
Date Thu, 30 Nov 2017 12:20:49 GMT
I have issue with spellcheck.q parameter. Thinking it is bug.



If I’m doing search without specifying spellcheck.q parameter then I’m
getting spellcheck suggestions.

Query: /select?q=text_en-us:baring&spellcheck.dictionary=en-us&spellcheck=on

Result:

<lst name="spellcheck">

  <lst name="suggestions">

    <lst name="baring">

      <int name="numFound">1</int>

      <int name="startOffset">11</int>

      <int name="endOffset">17</int>

      <arr name="suggestion">

        <str>bearing</str>

      </arr>

    </lst>

  </lst>

</lst>



But I really want to use spellcheck.q parameter to put clear input search
string there and I’m not getting any spellcheck suggestions.

Query:
/select?q=text_en-us:baring&spellcheck.dictionary=en-us&spellcheck.q=baring&spellcheck=on

Result:

<lst name="spellcheck">

  <lst name="suggestions"/>

</lst>



Here piece of solrconfig.xml:

   <lst name="spellchecker">

      <str name="name">en-us</str>

      <str name="field">text_en-us</str>

      <str name="classname">solr.DirectSolrSpellChecker</str>

      <str name="distanceMeasure">internal</str>

     <float name="accuracy">0.5</float>

      <int name="maxEdits">2</int>

      <int name="minPrefix">1</int>

      <int name="maxInspections">5</int>

      <int name="minQueryLength">4</int>

      <float name="maxQueryFrequency">0.01</float>

    </lst>



I’m using latest stable version - 7.1.0.





In the best we trust

Georgy Nevsky

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message