Created
January 9, 2012 16:17
-
-
Save dav-rob/1583636 to your computer and use it in GitHub Desktop.
Email Tokenizer Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index: | |
mapper: | |
dynamic: false | |
analysis: | |
analyzer: | |
default: | |
type: standard | |
stopwords: _none_ | |
# sortable is used to enable case-independent sorting | |
sortable: | |
tokenizer: keyword | |
filter: [lowercase] | |
# uax_url_email is used to analyse emails and urls in addition to the other standard analyser actions. | |
uax_url_email: | |
tokenizer: uax_url_email | |
filter: [standard, lowercase, stop] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contact" : { | |
"dynamic" : false, | |
"properties" : { | |
"mainEmail" : {"type" : "string", "analyzer":"uax_url_email"}, | |
.... | |
}}} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment