Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MappingCharFilter #1106

Conversation

belevian
Copy link
Contributor

@belevian belevian commented Jul 8, 2011

This adds the Mapping Char Filter to Elasticsearch.

It allows to easily handle char mapping during the analysis process.

The char mapping list has to be specified with the setting "mappings".

index:
    analysis:
        analyzer:
            default:
                tokenizer: standard
                filter: [my_mapping]
        char_filter:
            my_mapping:
                type: mapping
                mappings: [ph=>f, qu=>q] 

Otherwise the setting "mappings_path" can specify a file where you can put the list of char mapping :

ph => f
qu => k

@kimchy
Copy link
Member

kimchy commented Jul 8, 2011

Looks good!, but it fails to apply... because of ffaa17e...

@belevian belevian closed this Jul 8, 2011
@klimchuk
Copy link

Interesting, why I can't use space as a replacement?
For example: "X=> . " I was X to be replace with space-dot-space
As a result I have dot without spaces.

@imotov
Copy link
Contributor

imotov commented Jan 20, 2013

Spaces are removed because they are optional part of the syntax. If you need X to be replaced with space-dot-space, add the following rule:

X=>\\u0020.\\u0020

williamrandolph pushed a commit to williamrandolph/elasticsearch that referenced this pull request Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants