Accent insensitive search

67 views
Skip to first unread message

THIAGO FERNANDO DE AZEVEDO

unread,
Oct 3, 2017, 10:02:44 AM10/3/17
to Datafari
Hi, 
There is an option that returns the same result for words with accent and no accent. Like Accent insensitive search.


Thanks!

Aurélien MAZOYER

unread,
Oct 5, 2017, 10:15:42 AM10/5/17
to THIAGO FERNANDO DE AZEVEDO, Datafari
Hi,

Can you give me information of the fieldType used for your content field?
You can find this information in the Schema tab of the FileShare
collection in Solr admin tab.

Regards,

Aurélien
> --
> You received this message because you are subscribed to the Google Groups
> "Datafari" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datafari+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

THIAGO FERNANDO DE AZEVEDO

unread,
Oct 5, 2017, 11:42:56 AM10/5/17
to Datafari
Hi, 

Field-Type: org.apache.solr.schema.TextField

Regards 
Thiago

Aurélien MAZOYER

unread,
Oct 5, 2017, 11:48:35 AM10/5/17
to THIAGO FERNANDO DE AZEVEDO, Datafari
Hi,

Can you give me the name of the fieldType (for instance, text_en,
text_fr, etc...)?

Regards,

Aurélien

THIAGO FERNANDO DE AZEVEDO

unread,
Oct 5, 2017, 12:10:43 PM10/5/17
to Aurélien MAZOYER, Datafari
Hi, 
Sory.
Type: text_general

Regards 
Thiago

2017-10-05 12:48 GMT-03:00 Aurélien MAZOYER <aurelien...@gmail.com>:
Hi,

Can you give me the name of the fieldType (for instance, text_en,
text_fr, etc...)?

Regards,

Aurélien

2017-10-05 17:42 GMT+02:00 THIAGO FERNANDO DE AZEVEDO <tfdaz...@mppr.mp.br>:
> Hi,
>
> Field-Type: org.apache.solr.schema.TextField
> Regards Thiago
>
> Em terça-feira, 3 de outubro de 2017 11:02:44 UTC-3, THIAGO FERNANDO DE
> AZEVEDO escreveu:
>>
>> Hi,
>> There is an option that returns the same result for words with accent and
>> no accent. Like Accent insensitive search.
>>
>>
>> Thanks!
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Datafari" group.
> To unsubscribe from this group and stop receiving emails from it, send an

> For more options, visit https://groups.google.com/d/optout.



--
-----------------------------------------------------------
Thiago Fernando de Azevedo
Analista de Operações e Segurança
DTI-DISTEC-Divisão de Suporte Técnico
Ministério Público do Estado do Paraná
3250-4650
-----------------------------------------------------------

THIAGO FERNANDO DE AZEVEDO

unread,
Oct 5, 2017, 12:11:16 PM10/5/17
to Datafari
Hi, 
Sory.
Type: text_general

Regards 
Thiago

Em terça-feira, 3 de outubro de 2017 11:02:44 UTC-3, THIAGO FERNANDO DE AZEVEDO escreveu:

Aurélien MAZOYER

unread,
Oct 5, 2017, 2:59:04 PM10/5/17
to THIAGO FERNANDO DE AZEVEDO, Datafari
Hi,

You can add the ASCIIFolding filter
(https://lucene.apache.org/solr/guide/6_6/filter-descriptions.html#FilterDescriptions-ASCIIFoldingFilter)
to the text_general fieldType and reindex your data:
<fieldType name="text_general" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index"> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/>
</analyzer>
</fieldType>


You can also consider using a language specific fieldType (such as
text_en if you use english) to have better query matches.

Regards,

Aurélien
> --
> You received this message because you are subscribed to the Google Groups
> "Datafari" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to datafari+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages