Skip to content
Snippets Groups Projects
Commit e7a1c41f authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Added an empty query array in DisMaxQuery

parent 1795f4db
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ class DisMaxQuery implements BuilderInterface
*/
public function toArray()
{
$query = [];
foreach ($this->queries as $type) {
$query['queries'][] = [$type->getType() => $type->toArray()];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment