I am currently working in Capgemini as a technical lead on a Forutune 500 Drupal project.
Was worked in ecVision, leading supply chain management software company, focus on providing open source IT Solutions, Drupal professional. Specialist in Drupal scaling & system integration. Degree in CUHK information Engineering,1 year with HSBC iSeries server performance team. Keith is interested in technology and self-motative to learn new IT skills. Especially on Linux, networking & virtualization. With experience in IT technical areas, he was invited by HK productive Council, Hong Kong college of Technology and IBDS to organize courses about online marketing, networking & Security, open source strategy for SME and eCommerce.
If images / content are bounded by field collection module, you can try approach below to index to solr
enjoy
//Index product images
$field_collection_items = field_get_items('node', $node, 'field_image_set');
$field_collection_item_ids = array();
$i = 0;
foreach ($field_collection_items as $field_collection_item){
$field_collection_item_ids[$i] = $field_collection_item['value'];
$i++;
}
$field_collection_item_fields = entity_load('field_collection_item', $field_collection_item_ids);
$image_fields = array();
$i = 0;
foreach ($field_collection_item_fields as $field_collection_item_field){
$image_fields[$i] = field_get_items('field_collection_item', $field_collection_item_field, 'field_image');
$i++;
}
$i = 0;
foreach ($image_fields as $image_field){
foreach ($image_field as $image)
$path = file_create_url($image['uri']);
$document->setMultiValue('sm_field_image_'.$i++, $path); //Set multiple field_image values
}
1. Add index by setMultiValue
function scp_solr_search_apachesolr_update_index(&$document, $node){The song i love most
Drupal core, Form API, defining own hooks, web services - soap, menu system ...
| Foreign SNS | China SNS | Description |
| renren.com | More on college students | |
| t.sins.com.cn (微博) | More on superstars, feel link up with other websites | |
| MySpace | www.kaixin001.com (開心網) | For all people |
| www.wealink.com (若領) | More on mainland jobs | |
| Posterous | *Still have room for competiton | |
| YouTube | tudou.com (土豆) | Many anime, do not have copyright at all |