Index: apachesolr_search.admin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.admin.inc,v retrieving revision 1.1.2.19 diff -u -p -r1.1.2.19 apachesolr_search.admin.inc --- apachesolr_search.admin.inc 30 Jun 2009 10:57:24 -0000 1.1.2.19 +++ apachesolr_search.admin.inc 2 Jul 2009 16:12:20 -0000 @@ -136,7 +136,6 @@ function apachesolr_search_settings_form $qf = $defaults; } if ($fields) { - $form['apachesolr_search_query_fields'] = array( '#type' => 'fieldset', '#title' => t('Field biases'), @@ -146,13 +145,17 @@ function apachesolr_search_settings_form '#description' => t('Specify here which fields are more important when searching. Give a field a greater numeric value to make it more important. If you omit a field, it will not be searched.'), ); foreach ($fields as $field_name => $field) { - $form['apachesolr_search_query_fields'][$field_name] = array( - '#access' => $field->type == 'text', - '#type' => 'select', - '#options' => $weights, - '#title' => apachesolr_field_name_map($field_name), - '#default_value' => isset($qf[$field_name]) ? $qf[$field_name] : '0', - ); + // Only indexed feids are searchable + if ($field->schema{1} == 'I') { + // By default we only show text fields. Use hook_form_alter to change. + $form['apachesolr_search_query_fields'][$field_name] = array( + '#access' => $field->type == 'text', + '#type' => 'select', + '#options' => $weights, + '#title' => apachesolr_field_name_map($field_name), + '#default_value' => isset($qf[$field_name]) ? $qf[$field_name] : '0', + ); + } } // Make sure all the default fields are included, even if they have no indexed content. foreach ($defaults as $field_name => $weight) {