I thought it was a problem of elasticsearch version, updated it still same error, tried reindexes and so on... on admin page everything seems to be fine anchor->yes and so on. used that link looked like a fix and solution but after modifying my code and saving new 'elasticsearch' from admin I had nginx 502 error (on a specific page where the products must be). any suggestion? I also used some queries,
CREATE OR REPLACE VIEW inventory_stock_1 AS select distinct legacy_stock_status.product_id AS product_id, legacy_stock_status.website_id AS website_id, legacy_stock_status.stock_id AS stock_id, legacy_stock_status.qty AS quantity, legacy_stock_status.stock_status AS is_salable, product.sku AS sku from ( cataloginventory_stock_status legacy_stock_status join catalog_product_entity product on (( legacy_stock_status.product_id = product.entity_id )));
multiple reindexes. still nothing