public function decode($range, array $configuration = [])
    {
        preg_match('/(-?\d*?)' . self::DELIMITER . '(-?\d*)/', $range, $filterParts);
        if ($filterParts[1] == '' || $filterParts[2] == '') {
            throw new \InvalidArgumentException(
                'Invalid numeric range given',
                1466062730
            );
        }

        return '[' . (int)$filterParts[1] . ' TO ' . (int)$filterParts[2] . ']';
    }
public function decode($range, array $configuration = [])
    {
        preg_match('/(-?\d*?)' . self::DELIMITER . '(-?\d*)/', $range, $filterParts);
        if ($filterParts[1] == '' || $filterParts[2] == '') {
            throw new \InvalidArgumentException(
                'Invalid numeric range given',
                1466062730
            );
        }

        return '[' . (int)$filterParts[1] . ' TO ' . (int)$filterParts[2] . ']';
    }
public function decode ( $ range , array $ configuration = [ ] ) { preg_match ( '/(-?\d*?)' . self :: DELIMITER . '(-?\d*)/' , $ range , $ filterParts ) ; if ( $ filterParts [ 1 ] == '' || $ filterParts [ 2 ] == '' ) { throw new \ InvalidArgumentException ( 'Invalid numeric range given' , 1466062730 ) ; } return '[' . ( int ) $ filterParts [ 1 ] . ' TO ' . ( int ) $ filterParts [ 2 ] . ']' ; }
Parses the given range from a GET parameter and returns a Solr range
filter.

@param string $range The range filter from the URL.
@param array $configuration Facet configuration
@return string Lucene query language filter to be used for querying Solr
@throws \InvalidArgumentException
Parses the given range from a GET parameter and returns a Solr range filter .