I was looking at the module code to see how some CCK fields are being added to the index whilst others aren't and on line 1531 of the apachesolr.module it says "Invokes hook_apachesolr_cck_field_mappings to find out how to handle CCK fields."

But according to the README.txt and Robert's post http://acquia.com/blog/understanding-apachesolr-cck-api the hook is actually hook_apachesolr_cck_fields_alter(&$mappings)

Could you change the module to reflect this please to avoid confusion?

Also on a side note, are there plans to automatically have fields such as textareas and text fields added to the the solr index?

Thanks

Comments

pwolanin’s picture

Version: 6.x-1.3 » 6.x-1.x-dev
Status: Active » Needs review

you mean just this?

@@ -1528,7 +1529,7 @@ function apachesolr_field_name_map($field_name) {
 }
 
 /**
- * Invokes hook_apachesolr_cck_field_mappings to find out how to handle CCK fields.
+ * Invokes hook_apachesolr_cck_fields_alter() to find out how to handle CCK fields.
  */
 function apachesolr_cck_fields() {
   static $fields;

Also, no - text fields will not be added automatically as separate fields.

pwolanin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.