can anyone help me match results by words in elasticsearch regex? I am new to regex.
If I have strings as per below :
- string 1: "Hello, are you fine?"
- string 2: "Does she use youtube?"
If I search for "you" word in elastic search then I want just "string 1" as an output. and If I search for "are you" then it should also give me a "string 1" as an output.
I tried with below regex but not giving me the expected output :
- pattern 1:
".*you.*"
- it's giving me both string as an output. - pattern 2:
"/\syou\s/"
- it's not giving me an nay output.
Can anyone help me to fix this ?