protected function filterSearch(PaginateFinderConfiguration $configuration, Stage $qa)
    {
        $label = $configuration->getSearchIndex('label');

        if (null !== $label && '' !== $label) {
            $qa->match(array('label' => new \MongoRegex('/.*'.$label.'.*/i')));
        }

        return $qa;
    }
protected function filterSearch(PaginateFinderConfiguration $configuration, Stage $qa)
    {
        $label = $configuration->getSearchIndex('label');

        if (null !== $label && '' !== $label) {
            $qa->match(array('label' => new \MongoRegex('/.*'.$label.'.*/i')));
        }

        return $qa;
    }
@param PaginateFinderConfiguration $configuration
@param Stage                       $qa

@return array