Skip to content

Catchable Fatal Error #103

@firma

Description

@firma

the document url :
https://github.com/ongr-io/ElasticsearchBundle/blob/master/Resources/doc/search.md#combining-filters-and-queries

$manager = $this->get('es.manager');
        $repository = $manager->getRepository('LemonDemoBundle:Commodity');
        $search = $repository->createSearch();
        $queryStringQuery = new QueryStringQuery("name","test");
        $search->addQuery($queryStringQuery);
        $results = $repository->execute($search);

Error Code:

 Argument 2 passed to ONGR\ElasticsearchBundle\DSL\Query\QueryStringQuery::__construct() must be of the type array, 

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions