You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bharat Mallampati <ma...@gmail.com> on 2013/03/06 21:26:10 UTC

Performance Impact of changing minQueryLength for DirectSolrSpellChecker

Hi All,

By default, Solr does spell correction only if Term length is more than  4
chars.

In my application, we need to spell correct for 3 letter terms as well so,
I changed the  *DirectSolrSpellChecker configuration to set *minQueryLengthto 3

I would like to know if there is NEGATIVE performance impact of changing
minQueryLength?

*More details are as following :*

I have a document which has "vita" as a term .

I m issuing a search for "vits" and i see no suggestions available and
search is returning zero results.

It started to suggest "vita" when i search for "vits"  after making the
below configuration change(highlighted in yellow) for the
DirectSolrSpellChecker.

<searchComponent name="spellChecker_en_US" class="solr.SpellCheckComponent">

  <lst name="spellchecker">

    <str name="name">dictionary_en_US</str>

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

    <str name="field">keywords_en_US</str>

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

    <!--

    Default accuracy

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

    -->

  </lst>



  <!-- This field type's analyzer is used by the QueryConverter to tokenize
the value for "q" parameter -->

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

</searchComponent>


 Thanks

Bharat