From c3a15d5035d45a45f52adc21da28bc0a6e9d04f7 Mon Sep 17 00:00:00 2001 From: ornicar Date: Thu, 14 Apr 2011 16:23:45 -0700 Subject: [PATCH] Use the new count method in search command --- Command/SearchCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/SearchCommand.php b/Command/SearchCommand.php index a39bfeb..1061d3b 100644 --- a/Command/SearchCommand.php +++ b/Command/SearchCommand.php @@ -40,7 +40,7 @@ class SearchCommand extends Command $resultSet = $type->search($query); - $output->writeLn(sprintf('Found %d results', $resultSet->count())); + $output->writeLn(sprintf('Found %d results', $type->count($query))); foreach ($resultSet->getResults() as $result) { $source = $result->getSource(); $output->writeLn(sprintf('[%0.2f] %s', $result->getScore(), var_export(reset($source), true)));