Php api error

Hi,

I am using PHP elastic api (https://github.com/elastic/app-search-php)

I passed the filter param like below.

$searchParams = [
'page' => ['current' => $current, 'size' => 10] ,
'filters'=> [
'all' => [
"search_type" => ["company"],
"company_type" => ["Distributor","Music Publisher"]
]
]

	];

I am getting error " error : Uncaught Elastic\OpenApi\Codegen\Exception\BadRequestException: Filters contains an invalid set of keys for object inside of field: all; can only have clauses or a single field name.

Could you please help.

Thanks,
Vipin

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