Slow wordpress search page

When I search on my wordpress (woocommerce) it takes 50 seconds to load. According to Query Monitor the problem is this query. SELECT hihgv_posts.ID FROM hihgv_posts LEFT JOIN hihgv_postmeta ON (hihgv_posts.ID = hihgv_postmeta.post_id) LEFT JOIN hihgv_postmeta AS mt1 ON (hihgv_posts.ID = mt1.post_id AND mt1.meta_key = ‘_stock_status’) LEFT JOIN hihgv_postmeta AS mt2 ON (hihgv_posts.ID = mt2.post_id)…

Details