Elasticsearch regexp for all fields

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.