function elasticsearch_connector_views_handler_filter_string_autocomplete::op_not in Elasticsearch Connector 7.2
Same name and namespace in other branches
- 7.5 modules/elasticsearch_connector_views/handlers/elasticsearch_connector_views_handler_filter_string_autocomplete.inc \elasticsearch_connector_views_handler_filter_string_autocomplete::op_not()
- 7 modules/elasticsearch_connector_views/handlers/elasticsearch_connector_views_handler_filter_string_autocomplete.inc \elasticsearch_connector_views_handler_filter_string_autocomplete::op_not()
Overrides views_handler_filter_string::op_not
File
- modules/
elasticsearch_connector_views/ handlers/ elasticsearch_connector_views_handler_filter_string_autocomplete.inc, line 74 - Handle the elasticsearch string fields autocomplete filter using views_autocomplete_filters.
Class
- elasticsearch_connector_views_handler_filter_string_autocomplete
- @file Handle the elasticsearch string fields autocomplete filter using views_autocomplete_filters.
Code
function op_not($field) {
// $this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'NOT LIKE');
$this->query
->add_where($this->options['group'], array(
'not' => array(
'query' => array(
'match' => array(
$field => array(
'query' => $this->value,
'operator' => 'and',
),
),
),
),
));
}