Complete the code to define a character filter that replaces '&' with 'and'.
{
"settings": {
"analysis": {
"char_filter": {
"ampersand_filter": {
"type": "[1]",
"mappings": ["&=>and"]
}
}
}
}
}The mapping type is used to replace characters or strings with others in character filters.
Complete the code to define a character filter that removes HTML tags.
{
"settings": {
"analysis": {
"char_filter": {
"html_remover": {
"type": "[1]"
}
}
}
}
}The html_strip character filter removes HTML tags from text.
Fix the error in the character filter definition to replace '#' with 'number'.
{
"settings": {
"analysis": {
"char_filter": {
"hash_filter": {
"type": "[1]",
"mappings": ["#=>number"]
}
}
}
}
}The correct type for character replacement using mappings is mapping.
Fill both blanks to create a character filter that replaces '@' with 'at' and removes HTML tags.
{
"settings": {
"analysis": {
"char_filter": {
"email_filter": {
"type": "[1]",
"mappings": ["@=>at"]
},
"clean_html": {
"type": "[2]"
}
}
}
}
}The mapping type is used for character replacements with mappings, and html_strip removes HTML tags.
Fill all three blanks to define a character filter that replaces '$' with 'dollar', removes HTML tags, and replaces '%' with 'percent'.
{
"settings": {
"analysis": {
"char_filter": {
"dollar_filter": {
"type": "[1]",
"mappings": ["$=>dollar"]
},
"html_cleaner": {
"type": "[2]"
},
"percent_filter": {
"type": "[3]",
"mappings": ["%=>percent"]
}
}
}
}
}The mapping type is used for character replacements with mappings, and html_strip removes HTML tags.