Added custom Edge N gram Type with MappingCharFilterFactory : bé bives béton AND bettrave
This commit is contained in:
@@ -310,6 +310,28 @@
|
||||
<filter class="solr.LowerCaseFilterFactory"/>
|
||||
</analyzer>
|
||||
</fieldType>
|
||||
|
||||
<!-- [MATERIO] Added custom Edge N gram Type with MappingCharFilterFactory to remove accent
|
||||
see materio_search_api_search_api_data_type_info() in materio_search_api.module
|
||||
purpose is to get the following feature :
|
||||
"be" give béton and bettrave
|
||||
BUT "bé" give only béton and NOT betterave
|
||||
-->
|
||||
<fieldType name="edge_n2_kw_mapped_text" class="solr.TextField" omitNorms="true" positionIncrementGap="100">
|
||||
<analyzer type="index">
|
||||
<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
|
||||
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
||||
<filter class="solr.LowerCaseFilterFactory"/>
|
||||
<filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="25" />
|
||||
</analyzer>
|
||||
<analyzer type="query">
|
||||
<tokenizer class="solr.KeywordTokenizerFactory"/>
|
||||
<filter class="solr.LowerCaseFilterFactory"/>
|
||||
</analyzer>
|
||||
</fieldType>
|
||||
|
||||
|
||||
|
||||
<!-- Setup simple analysis for spell checking -->
|
||||
|
||||
<fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100">
|
||||
|
||||
Reference in New Issue
Block a user