Inaccurate Matching in Email Strings

Hey guys, here is my query:
{
"query": {
"bool": {
"minimum_should_match": 1,
"must": [],
"must_not": [],
"should": [
{
"query_string": {
"fields": [
"emailAddress"
],
"query": "test@abc.com"
}
}
]
}
},
"from": 0,
"size": 25
}

whenever I run this, I would also get back results that have emails that
dont match test@abc.com, such as hi@abc.com

If i switch the field to names, the searches will come back exact.

Is there a special meaning to the @ sign that's doing this?

Thx

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey,

check out the uax_email_url tokenizer, which will help you here

--Alex

On Tue, Oct 1, 2013 at 1:49 AM, Steve Xian monkxly@gmail.com wrote:

Hey guys, here is my query:
{
"query": {
"bool": {
"minimum_should_match": 1,
"must": ,
"must_not": ,
"should": [
{
"query_string": {
"fields": [
"emailAddress"
],
"query": "test@abc.com"
}
}
]
}
},
"from": 0,
"size": 25
}

whenever I run this, I would also get back results that have emails that
dont match test@abc.com, such as hi@abc.com

If i switch the field to names, the searches will come back exact.

Is there a special meaning to the @ sign that's doing this?

Thx

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.