I need to write query to find regexp match any fields.
i write a regexp match one field (laravel).
$params = [
'index' => 'index',
'type' => '_doc',
'body' => [
"query"=> [
"nested"=> [
"path"=> "Event",
"query"=> [
"bool"=> [
"must"=> [
[
"regexp"=> [
"Event.name"=> $request["sear"]
]
]
]
]
]
]
]
]
];
i want to replace Event.name with all fields how can i do that