public function SolrFilterSubQuery::hasFilter in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 Solr_Base_Query.php \SolrFilterSubQuery::hasFilter()
- 7 Solr_Base_Query.php \SolrFilterSubQuery::hasFilter()
File
- ./
Solr_Base_Query.php, line 60 - This class allows you to make operations on a query that will be sent to Apache Solr. methods such as adding and removing sorts, remove and replace parameters, adding and removing filters, getters and setters for various parameters and more
Class
- SolrFilterSubQuery
- This class allows you to make operations on a query that will be sent to Apache Solr. methods such as adding and removing sorts, remove and replace parameters, adding and removing filters, getters and setters for various parameters and…
Code
public function hasFilter($name, $value, $exclude = FALSE) {
foreach ($this->fields as $pos => $values) {
if ($values['#name'] == $name && $values['#value'] == $value && $values['#exclude'] == $exclude) {
return TRUE;
}
}
return FALSE;
}