Terms lookup using Elastica Terms

45 views
Skip to first unread message

elena

unread,
Apr 6, 2017, 7:59:35 PM4/6/17
to Elastica - Elasticsearch PHP Client
Hello there,

I am wondering what is the reason of having array_values($terms) when setting the terms in Elastica/Query/Terms?

I am trying to use Elastica/Query/Terms to set terms lookup query 

$terms = new \Elastica\Query\Terms('rootMessage.id', [
'type' => 'user',
'id' => $user->getId(),
'path' => 'mutedMessageIds',
]);


But it gets hydrated to values only, ignoring the array keys.

Seems like my only choice is to set raw query?

Thank you.

ruflin

unread,
Apr 27, 2017, 8:08:12 AM4/27/17
to Elastica - Elasticsearch PHP Client
I might be that the Terms API changed or got extended. You can always use also setRawParams or setParams which could be helpful. Can you post in json what your expected result was and what you got? Perhaps open a issue on Github for it.
Reply all
Reply to author
Forward
0 new messages