Skip to content

Commit

Permalink
Numeric range filter was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
im-denisenko committed Sep 17, 2015
1 parent 11d9a21 commit fa36349
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 67 deletions.
13 changes: 0 additions & 13 deletions lib/Elastica/Filter/NumericRange.php

This file was deleted.

16 changes: 0 additions & 16 deletions lib/Elastica/QueryBuilder/DSL/Filter.php
Expand Up @@ -22,7 +22,6 @@
use Elastica\Filter\MatchAll;
use Elastica\Filter\Missing;
use Elastica\Filter\Nested;
use Elastica\Filter\NumericRange;
use Elastica\Filter\Prefix;
use Elastica\Filter\Query as QueryFilter;
use Elastica\Filter\Range;
Expand Down Expand Up @@ -332,21 +331,6 @@ public function bool_not(AbstractFilter $filter)
return new BoolNot($filter);
}

/**
* numeric range filter.
*
* @link http://www.elastic.co/guide/en/elasticsearch/reference/0.90/query-dsl-numeric-range-filter.html
*
* @param string $fieldName Field name
* @param array $args Field arguments
*
* @return NumericRange
*/
public function numeric_range($fieldName = '', array $args = array())
{
return new NumericRange($fieldName, $args);
}

/**
* or filter.
*
Expand Down
37 changes: 0 additions & 37 deletions test/lib/Elastica/Test/Filter/NumericRangeTest.php

This file was deleted.

1 change: 0 additions & 1 deletion test/lib/Elastica/Test/QueryBuilder/DSL/FilterTest.php
Expand Up @@ -45,7 +45,6 @@ public function testInterface()
$this->_assertImplemented($filterDSL, 'match_all', 'Elastica\Filter\MatchAll', array());
$this->_assertImplemented($filterDSL, 'missing', 'Elastica\Filter\Missing', array('field'));
$this->_assertImplemented($filterDSL, 'nested', 'Elastica\Filter\Nested', array());
$this->_assertImplemented($filterDSL, 'numeric_range', 'Elastica\Filter\NumericRange', array());
$this->_assertImplemented($filterDSL, 'prefix', 'Elastica\Filter\Prefix', array('field', 'prefix'));
$this->_assertImplemented($filterDSL, 'query', 'Elastica\Filter\Query', array(new Match()));
$this->_assertImplemented($filterDSL, 'range', 'Elastica\Filter\Range', array('field', array()));
Expand Down

0 comments on commit fa36349

Please sign in to comment.