You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Carlos .Sponchiado" <cs...@gmail.com> on 2020/02/27 14:21:27 UTC

Typo in the documentation of Spell Check

Hello,

I'd like sharing an error in the documentation of Solr related to
SpellCheck.
I was investigating why the parameter spellcheck.queryAnalyzerFieldtype wasn't
working and I saw that type was lowercase in the documentation. The correct
should be spellcheck.queryAnalyzerFieldType

Hope to be helpful

Best Regards
Carlos Sponchiado

Re: Typo in the documentation of Spell Check

Posted by "Carlos .Sponchiado" <cs...@gmail.com>.
Hi Jan,

It is exactly this documentation. it says spellcheck.queryAnalyzerField*type,
*but should be spellcheck.queryAnalyzerField*Type.*

I can share with you where I found the correct use of this parameter here:

https://github.com/apache/lucene-solr/search?l=XML&q=queryAnalyzerFieldType

All the examples the Type is uppercase and here at line 739 is using correct

https://github.com/apache/lucene-solr/blob/8cde1277ec7151bd6ab62950ac93cbdd6ff04d9f/solr/core/src/java/org/apache/solr/handler/component/SpellCheckComponent.java

I configured my spellcheck in this way and now it uses my analyser and the
term of search is only in q parameter and spellcheck.q is empty:

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

        <str name="queryAnalyzerFieldType">text-spellcheck</str>

        <lst name="spellchecker">

            <str name="name">default</str>

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

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

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

            <float name="accuracy">0.7</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>

    </searchComponent>


Initially I was thinking that I should use this parameter inside the
requestHandler, as a parameter of the search. Then reading the book  Apache
Solr Enterprise Search Server
<https://learning.oreilly.com/library/view/apache-solr-enterprise/9781782161363>
I
noticed it.




Em qui., 27 de fev. de 2020 às 14:47, Jan Høydahl <ja...@cominvent.com>
escreveu:

> Thanks for reporting bugs.
>
> I checked the Reference Guide and the documentation seems correct:
> https://lucene.apache.org/solr/guide/8_4/spell-checking.html#spell-check-parameters
> In fact that parameter was only added to the documentation from version
> 7.3. Please specify exactly which documentation your are looking at.
>
> Jan
>
> 27. feb. 2020 kl. 15:21 skrev Carlos .Sponchiado <cs...@gmail.com>:
>
> Hello,
>
> I'd like sharing an error in the documentation of Solr related to
> SpellCheck.
> I was investigating why the parameter spellcheck.queryAnalyzerFieldtype wasn't
> working and I saw that type was lowercase in the documentation. The correct
> should be spellcheck.queryAnalyzerFieldType
>
> Hope to be helpful
>
> Best Regards
> Carlos Sponchiado
>
>
>

-- 
Abraços
Carlos Sponchiado

Re: Typo in the documentation of Spell Check

Posted by Jan Høydahl <ja...@cominvent.com>.
Thanks for reporting bugs.

I checked the Reference Guide and the documentation seems correct: https://lucene.apache.org/solr/guide/8_4/spell-checking.html#spell-check-parameters
In fact that parameter was only added to the documentation from version 7.3. Please specify exactly which documentation your are looking at.

Jan

> 27. feb. 2020 kl. 15:21 skrev Carlos .Sponchiado <cs...@gmail.com>:
> 
> Hello,
> 
> I'd like sharing an error in the documentation of Solr related to SpellCheck.
> I was investigating why the parameter spellcheck.queryAnalyzerFieldtype wasn't working and I saw that type was lowercase in the documentation. The correct should be spellcheck.queryAnalyzerFieldType
> 
> Hope to be helpful 
> 
> Best Regards
> Carlos Sponchiado