lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgy Nevsky <>
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


<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">






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



<lst name="spellcheck">

  <lst name="suggestions"/>


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>


I’m using latest stable version - 7.1.0.

In the best we trust

Georgy Nevsky

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