lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlos .Sponchiado" <csponchi...@gmail.com>
Subject Re: Typo in the documentation of Spell Check
Date Wed, 04 Mar 2020 08:47:29 GMT
Thank you very much Christine.

Em ter., 3 de mar. de 2020 às 18:38, Christine Poerschke (BLOOMBERG/
LONDON) <cpoerschke@bloomberg.net> escreveu:

> Thanks for the detailed report Carlos!
>
> I've just committed a fix for the typo:
>
> https://github.com/apache/lucene-solr/commit/4a0063f04a91c6d68e11252396e8c8d5e722b7b2
>
> https://github.com/apache/lucene-solr/commit/def6816f48598ce8e8757239b98969b5e18b21af
>
> Christine
>
> From: dev@lucene.apache.org At: 02/27/20 15:23:34
> To: jan.asf@cominvent.com
> Cc: dev@lucene.apache.org
> Subject: Re: Typo in the documentation of Spell Check
>
> 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 <jan.asf@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 <csponchiado@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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org



-- 
Abraços
Carlos Sponchiado

Mime
View raw message