Skip to content

Commit

Permalink
Added missing use stmt. in find_fulltext cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Longosz committed Jun 2, 2017
1 parent 899f2ce commit ea3b049
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Command/FindContentCommand.php
@@ -1,18 +1,18 @@
<?php

/**
* File containing the FindContentCommand class.
*
* @copyright Copyright (C) eZ Systems AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
* @version //autogentag//
*/
namespace EzSystems\CookbookBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use eZ\Publish\API\Repository\Values\Content\Query;

/**
* This command performs a simple full text search
Expand All @@ -38,7 +38,7 @@ protected function execute( InputInterface $input, OutputInterface $output )

$text = $input->getArgument( 'text' );

$query = new \eZ\Publish\API\Repository\Values\Content\Query();
$query = new Query();
// Use 'query' over 'filter' to get hit score (relevancy) and default sorting by it with Solr/Elastic
$query->query = new Query\Criterion\FullText( $text );

Expand Down

0 comments on commit ea3b049

Please sign in to comment.