JaapRood/fuel-search — Issue #4: Add method to search object to retrieve statistics after execution of search
Author: JaapRood
Created: 2012-02-20 21:36:12+00:00
State: open

As discussed at issue #2, it would be pretty good, especially for development purposes, to be able to get information about the search result set. I'm proposing the following syntax:

```php
$products = Model_Product::find('all');

$products_search = Search::find('shampoo')
->in($products)
->by('name');

$found_products = $products_search->execute();
$found_products_statistics = $products_search->statistics();

```

My guess is that this method should return an array, with the "entry_key" as key, and information as value.