changed boosts
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
10c9d53c31
commit
e0ae80791b
@ -1480,8 +1480,8 @@ function search_api_admin_index_fields(array $form, array &$form_state, SearchAp
|
||||
$fulltext_type = array(0 => 'text');
|
||||
$entity_types = entity_get_info();
|
||||
$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', '5000', '10000', '20000', '40000', '80000', '160000', '320000'));
|
||||
|
||||
// $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', '5000', '10000', '20000', '40000', '80000', '160000', '320000'));
|
||||
$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['#theme'] = 'search_api_admin_fields_table';
|
||||
$form['#tree'] = TRUE;
|
||||
|
@ -1636,6 +1636,10 @@ function search_api_extract_fields(EntityMetadataWrapper $wrapper, array $fields
|
||||
foreach ($nested as $prefix => $nested_fields) {
|
||||
if (isset($wrapper->$prefix)) {
|
||||
$nested_fields = search_api_extract_fields($wrapper->$prefix, $nested_fields, $value_options);
|
||||
# http://drupal.org/node/1873910#comment-6876200
|
||||
// $subwrapper = $wrapper->$prefix;
|
||||
// $subwrapper->language( $wrapper->language->value() );
|
||||
// $nested_fields = search_api_extract_fields($subwrapper, $nested_fields, $value_options);
|
||||
foreach ($nested_fields as $field => $info) {
|
||||
$fields["$prefix:$field"] = $info;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user