Skip to content

Instantly share code, notes, and snippets.

@dav-rob
Created January 9, 2012 16:32
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/1583708 to your computer and use it in GitHub Desktop.
Save dav-rob/1583708 to your computer and use it in GitHub Desktop.
Email Tokenizer Problem
{
"bool" : {
"should" : [ {
"filtered" : {
"query" : {
"match_all" : {
}
},
"filter" : {
"bool" : {
"should" : {
"prefix" : {
"person_name" : "@gmail.com"
}
}
}
}
}
}, {
"query_string" : {
"query" : "(@gmail.com*) ",
"fields" : [ "companyName", "fullName", "mainEmail", "displayAddress" ],
"default_operator" : "or",
"allow_leading_wildcard" : true
}
} ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment