Steve_Xian
(Steve Xian)
September 30, 2013, 11:49pm
1
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 .
spinscale
(Alexander Reelsen)
October 1, 2013, 5:48am
2
Hey,
check out the uax_email_url tokenizer, which will help you here
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
--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 .