Elasticsearch php client setting parameters

Can anyone tell me what’s wrong with this statement?
$params[‘body’][‘query’][‘bool’][‘must’][‘range’][‘created_at’][‘gte’] = $from[‘lte’] = $to[‘should’][ ‘match’][’_all’][$datasourcefields] = $keyword;

Thanks,
Akhil

That doesn't look like valid PHP or ES query dsl. What are you trying to do?

Can you post the full snippet of code?

thanks man, but I have resolved the issue.

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