Elasticsearch php client setting parameters


(Akhil Prashar) #1

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


(Zachary Tong) #2

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?


(Akhil Prashar) #3

thanks man, but I have resolved the issue.


(system) #4

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