Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catchable Fatal Error #103

Closed
firma opened this issue Dec 30, 2014 · 0 comments · Fixed by #105
Closed

Catchable Fatal Error #103

firma opened this issue Dec 30, 2014 · 0 comments · Fixed by #105
Assignees

Comments

@firma
Copy link
Contributor

firma commented Dec 30, 2014

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, 

@firma firma changed the title SearchPhaseExecutionException Catchable Fatal Error Dec 30, 2014
@saimaz saimaz self-assigned this Dec 30, 2014
@saimaz saimaz added the go label Dec 30, 2014
@saimaz saimaz removed the qa label Jan 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants