This issue is a new situation I am facing after applying a fix for FEMMES.COM not properly tokenizing ( How do I get french text FEMMES.COM to index as language variants of FEMMES )
Failing Test Case: #FEMMES2017 should tokenize to Femmes, Femme, 2017.
It is quite possible my approach to use a MappingCharFilter was not correct, and really just a band-aid. What is the correct approach here to get this failing test case to pass?
Current Index Configuration
"analyzers": [
{
"@odata.type": "#Microsoft.Azure.Search.CustomAnalyzer",
"name": "text_language_search_custom_analyzer",
"tokenizer": "text_language_search_custom_analyzer_ms_tokenizer",
"tokenFilters": [
"lowercase",
"text_synonym_token_filter",
"asciifolding",
"language_word_delim_token_filter"
],
"charFilters": [
"html_strip",
"replace_punctuation_with_comma"
]
},
{
"@odata.type": "#Microsoft.Azure.Search.CustomAnalyzer",
"name": "text_exact_search_Index_custom_analyzer",
"tokenizer": "text_exact_search_Index_custom_analyzer_tokenizer",
"tokenFilters": [
"lowercase",
"asciifolding"
],
"charFilters": []
}
],
"tokenizers": [
{
"@odata.type": "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer",
"name": "text_language_search_custom_analyzer_ms_tokenizer",
"maxTokenLength": 300,
"isSearchTokenizer": false,
"language": "french"
},
{
"@odata.type": "#Microsoft.Azure.Search.StandardTokenizerV2",
"name": "text_exact_search_Index_custom_analyzer_tokenizer",
"maxTokenLength": 300
}
],
"tokenFilters": [
{
"@odata.type": "#Microsoft.Azure.Search.SynonymTokenFilter",
"name": "text_synonym_token_filter",
"synonyms": [
"ca => ça",
"yeux => oeil",
"oeufs,oeuf,Œuf,Œufs,œuf,œufs",
"etre,ete"
],
"ignoreCase": true,
"expand": true
},
{
"@odata.type": "#Microsoft.Azure.Search.WordDelimiterTokenFilter",
"name": "language_word_delim_token_filter",
"generateWordParts": true,
"generateNumberParts": true,
"catenateWords": false,
"catenateNumbers": false,
"catenateAll": false,
"splitOnCaseChange": true,
"preserveOriginal": false,
"splitOnNumerics": true,
"stemEnglishPossessive": true,
"protectedWords": []
}
],
"charFilters": [
{
"@odata.type": "#Microsoft.Azure.Search.MappingCharFilter",
"name": "replace_punctuation_with_comma",
"mappings": [
"#=>,",
"$=>,",
"€=>,",
"£=>,",
"%=>,",
"&=>,",
"+=>,",
"/=>,",
"==>,",
"<=>,",
">=>,",
"@=>,",
"_=>,",
"µ=>,",
"§=>,",
"¤=>,",
"°=>,",
"!=>,",
"?=>,",
"\"=>,",
"'=>,",
"`=>,",
"~=>,",
"^=>,",
".=>,",
":=>,",
";=>,",
"(=>,",
")=>,",
"[=>,",
"]=>,",
"{=>,",
"}=>,",
"*=>,",
"-=>,"
]
}
]
Analyze API Call
{
"analyzer": "text_language_search_custom_analyzer",
"text": "#femmes2017"
}
Analyze API Response
{
"@odata.context": "https://one-adscope-search-eu-prod.search.windows.net/$metadata#Microsoft.Azure.Search.V2016_09_01.AnalyzeResult",
"tokens": [
{
"token": "femmes",
"startOffset": 1,
"endOffset": 7,
"position": 0
},
{
"token": "2017",
"startOffset": 7,
"endOffset": 11,
"position": 1
}
]
}