We have a cck field called “keywords”. We need to add this field to the solr index so we can search on it from outside of drupal. How are CCK fields managed in the solr index?
UPDATE:
I created a module “apachesolr_search_additions” and the following function:
<?php
function apachesolr_search_additions_apachesolr_update_index(&$document, $node)
{
if (isset($node->field_keywords_raw) && !empty($node->field_keywords_raw))
{
$document->addField('sm_keywords', $node->field_keywords_raw[0]['value'], '2.0');
}
}
I then ran cron and went to:
admin/reports/apachesolr
it does NOT show the field name in the search index. How can I verify it is in the index?