repatched for own boosts options & avoid published filter

This commit is contained in:
Bachir Soussi Chiadmi 2013-09-26 16:05:44 +02:00
parent 128640cd15
commit a30917d1d2
2 changed files with 2 additions and 2 deletions

View File

@ -1483,7 +1483,7 @@ function search_api_admin_index_fields(array $form, array &$form_state, SearchAp
$fulltext_type = array(0 => 'text'); $fulltext_type = array(0 => 'text');
$entity_types = entity_get_info(); $entity_types = entity_get_info();
$default_types = search_api_default_field_types(); $default_types = search_api_default_field_types();
$boosts = drupal_map_assoc(array('0.1', '0.2', '0.3', '0.5', '0.8', '1.0', '2.0', '3.0', '5.0', '8.0', '13.0', '21.0')); $boosts = drupal_map_assoc(array('0.1', '0.2', '0.3', '0.5', '0.8', '1.0', '2.0', '3.0', '5.0', '8.0', '13.0', '21.0', '100', '1000', '1010', '1020', '1030', '1040', '1050', '1060'));
$form_state['index'] = $index; $form_state['index'] = $index;
$form['#theme'] = 'search_api_admin_fields_table'; $form['#theme'] = 'search_api_admin_fields_table';

View File

@ -1785,7 +1785,7 @@ function _search_api_query_add_node_access($account, SearchApiQueryInterface $qu
$query->filter($filter); $query->filter($filter);
} }
else { else {
$query->condition('status', NODE_PUBLISHED); // $query->condition('status', NODE_PUBLISHED);
} }
// Filter by node access grants. // Filter by node access grants.
$filter = $query->createFilter('OR'); $filter = $query->createFilter('OR');