I am new in Elastic Search. I want to perform search for the pattern "Achieved by Ron@" in following string where "Achieved by" string is constant and Ron is a username that can change followed by '@' constant character:
"this is very useful, Achieved by Ron@, Let's meet sometime, Achieved to John"
I tried below query but it didn't work.
{
"query": {
"query_string": {
"query": "/Achieved by .*@/"
}
}
}
Please help me out to solve this problem.