For bundle specific alteration according to the API of *apachesolr.api.php* , hook_apachesolr_entity_info_alter
is recommended and the structure of the $entity should be,

  $entity_info['node']['bundles']['page']['apachesolr']['status callback'][] = 'apachesolr_index_node_status_callback'; 

Now this structure is not satisfied in the current version of module in the function apachesolr_entity_get_callback.
So to actually alter the behavior for a bundle specific scenario, we need to modify the array structure in the
in apachesolr_entity_get_callback according to attached patch

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

roynilanjan created an issue. See original summary.

roynilanjan’s picture

Status: Needs review » Needs work

The last submitted patch, 2: apachesolr.2688891.bundle-support.1.patch, failed testing.

The last submitted patch, 2: apachesolr.2688891.bundle-support.1.patch, failed testing.

roynilanjan’s picture

roynilanjan’s picture

Status: Needs work » Needs review
roynilanjan’s picture

roynilanjan’s picture

The last submitted patch, 2: apachesolr.2688891.bundle-support.1.patch, failed testing.

roynilanjan’s picture

roynilanjan’s picture

Issue tags: +drupal 7, +Apache Solr Search