To test out, I have set up a simple content type, with just a title and an integer field.

The list view works fine and shows the list of nodes and their field values retrieved from the mongodb

But if i add a filter to the view (either a preset filter or any exposed filter, or either the title or the integer field), the result is always empty.

Using:
EntityFieldQuery Views Backend 7.x-1.0-alpha3
MongoDB 7.x-1.0-rc2
MongoDB Storage 7.x-1.0-rc2

Edit:
Also observed that a filter on "nid" works, both as a preset filter and as an exposed filter,. All other fields' filters return a null result though

Comments

saitanay’s picture

More info: gives this error on trying to search giving a value in exposed filter

Notice: Undefined variable: value in efq_views_handler_filter_field_numeric->op_simple() (line 26 of /var/www/xxx.com/d1/sites/all/modules/efq_views/handlers/efq_views_handler_filter_field_numeric.inc).

mcrittenden’s picture

Priority: Normal » Critical

This seems critical to me. I can reproduce it as well.

mcrittenden’s picture

Priority: Critical » Normal

Actually it appears this isn't as cut and dry as I thought. On a simple test view (exported below), an exposed filter works fine. Moving back to normal in that case--seems to be a little more edge casey.

$view = new view();
$view->name = 'test_filter_view';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'efq_node';
$view->human_name = 'Test Filter View';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['style_plugin'] = 'default';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Node: Node ID */
$handler->display->display_options['fields']['nid']['id'] = 'nid';
$handler->display->display_options['fields']['nid']['table'] = 'efq_node';
$handler->display->display_options['fields']['nid']['field'] = 'nid';
/* Filter criterion: Entity: Label */
$handler->display->display_options['filters']['label']['id'] = 'label';
$handler->display->display_options['filters']['label']['table'] = 'efq_node';
$handler->display->display_options['filters']['label']['field'] = 'label';
$handler->display->display_options['filters']['label']['operator'] = 'CONTAINS';
$handler->display->display_options['filters']['label']['exposed'] = TRUE;
$handler->display->display_options['filters']['label']['expose']['operator_id'] = 'label_op';
$handler->display->display_options['filters']['label']['expose']['label'] = 'Label';
$handler->display->display_options['filters']['label']['expose']['operator'] = 'label_op';
$handler->display->display_options['filters']['label']['expose']['identifier'] = 'label';
$handler->display->display_options['filters']['label']['expose']['remember_roles'] = array(
  2 => '2',
  1 => 0,
);
mcrittenden’s picture

Issue summary: View changes

added an obersvation