I like the idea of your module, taking the pain out of custom coding for cck fields... I'd like to see if it does my custom compounded field :)

However, I installed your module and when I enabled it I got a whitescreen across my site... the error behind it was "Call-time pass-by-reference has been deprecated" .. this can be found in:

apachesolr_custom_fields.module line #502

$document->$solr_field = $callback($node, $item['field_source'], &$document);  

It obviously just needs the ampersand removing from $document:

$document->$solr_field = $callback($node, $item['field_source'], $document);  

I've enabled the module and have been going through it.. you have a typo here:
Fatal error: Call to undefined function check_plian() in /home/user/webdev/pressflow-core/sites/all/modules/contrib/apachesolr_custom_fields/apachesolr_custom_fields.module on line 131

I'm still new to Solr so I'm unable to work out whether it's enabled the index or is correctly indexing the content I want.

Comments

robbin.zhao’s picture

Status: Active » Postponed

the typo problem has been fixed.
I am now thinking about the ampersand problem.

Thank you!

robbin.zhao’s picture

Status: Postponed » Closed (fixed)