Currently apachesolr module only support the drupal entity . It would be greatly helpful if there were support for custom tables as well.
I made alterations to enable this support.

apachesolr_index_entity_to_documents($item, $env_id)
apachesolr_convert_entity_to_documents($entity, $entity_type, $env_id) and
apachesolr_index_entities_document($row, $entity_type, $env_id) in file apachesolr.index.inc

Changes made are in the attached patch.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

veerasekar89’s picture

Issue summary: View changes
veerasekar89’s picture

Title: can't create solr index for custom table » Could not create a solr index for custom table
Category: Bug report » Feature request
Issue summary: View changes
FileSize
2.4 KB
veerasekar89’s picture

FileSize
2.46 KB
veerasekar89’s picture

FileSize
1.86 KB

#reworking in patch

kenorb’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 4: apachesolr.index_.patch, failed testing.