I am using Elasticsearch version 6.4 on AWS
my_index data from which I will be searching
{
"snapshot": {
"last_name": "Chavan",
"first_name": "Sachin",
"email_id": "sachin@mail.com",
"user_status": "active_user"
},
"tags": [
"Apple",
"Sachin",
"Chavan",
"sachin@mail.com"
]
}
if I search by this my_index/_search?q=tags:*sa*
-- It works
But if I search for email like this my_index/_search?q=tags:*@mail*
--- returns 0 hits,
I have gone through some solutions but it seems non of them works, tried for not_analyzed and uax_url_email tokenizer.
Please help me out here,if you can share exact settings and mapping I have to make while creating index then that will be really helpful.