Skip to content

Instantly share code, notes, and snippets.

@dav-rob
Created January 9, 2012 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dav-rob/1583636 to your computer and use it in GitHub Desktop.
Save dav-rob/1583636 to your computer and use it in GitHub Desktop.
Email Tokenizer Problem
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]
{
"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