0
$query_search_api = search_api_query('search_products', $options);


        foreach($arrFilterSa as $machine_code => $efield_value)
        {
          if($efield_value)
          {

            if(is_array($efield_value))
            {
         $query_search_api->condition($machine_code, $efield_value, "IN");
            }
            else
            {
         $query_search_api->condition($machine_code, (int)$efield_value, "=");
            }




          }
        }

        $result_api = $query_search_api->execute();
        } 

My sample code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.