Skip to content

Commit

Permalink
some more facets part removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ruflin committed Oct 6, 2015
1 parent f4f0e78 commit ba4aa14
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion lib/Elastica/Param.php
Expand Up @@ -6,7 +6,7 @@
/**
* Class to handle params.
*
* This function can be used to handle params for queries, filter, facets
* This function can be used to handle params for queries, filter
*
* @author Nicolas Ruflin <spam@ruflin.com>
*/
Expand Down
2 changes: 0 additions & 2 deletions lib/Elastica/Percolator.php
Expand Up @@ -92,7 +92,6 @@ public function unregisterQuery($name)
* Percolator::EXTRA_SIZE,
* Percolator::EXTRA_TRACK_SCORES,
* Percolator::EXTRA_SORT,
* Percolator::EXTRA_FACETS,
* Percolator::EXTRA_AGGS,
* Percolator::EXTRA_HIGHLIGHT ]
*
Expand Down Expand Up @@ -121,7 +120,6 @@ public function matchDoc(Document $doc, $query = null, $type = 'type', $params =
* Percolator::EXTRA_SIZE,
* Percolator::EXTRA_TRACK_SCORES,
* Percolator::EXTRA_SORT,
* Percolator::EXTRA_FACETS,
* Percolator::EXTRA_AGGS,
* Percolator::EXTRA_HIGHLIGHT ]
*
Expand Down
4 changes: 0 additions & 4 deletions lib/Elastica/Query.php
Expand Up @@ -346,10 +346,6 @@ public function toArray()
$this->setQuery(new MatchAll());
}

if (isset($this->_params['facets']) && 0 === count($this->_params['facets'])) {
unset($this->_params['facets']);
}

if (isset($this->_params['post_filter']) && 0 === count($this->_params['post_filter'])) {
unset($this->_params['post_filter']);
}
Expand Down
3 changes: 0 additions & 3 deletions test/lib/Elastica/Test/Query/BuilderTest.php
Expand Up @@ -96,7 +96,6 @@ public function getQueryTypes()
array('bool', 'bool'),
array('constantScore', 'constant_score'),
array('disMax', 'dis_max'),
array('facets', 'facets'),
array('filter', 'filter'),
array('filteredQuery', 'filtered'),
array('must', 'must'),
Expand Down Expand Up @@ -124,8 +123,6 @@ public function getQueryTypes()
* @covers \Elastica\Query\Builder::constantScoreClose
* @covers \Elastica\Query\Builder::disMax
* @covers \Elastica\Query\Builder::disMaxClose
* @covers \Elastica\Query\Builder::facets
* @covers \Elastica\Query\Builder::facetsClose
* @covers \Elastica\Query\Builder::filter
* @covers \Elastica\Query\Builder::filterClose
* @covers \Elastica\Query\Builder::filteredQuery
Expand Down

0 comments on commit ba4aa14

Please sign in to comment.