1

I use apachesolr module for index content. As I understand, this module does not provide indexing unpublished content. Is it some trick to avoid that?

I try to use this hook and change status callback, but it does not work.

function hook_apachesolr_entity_info_alter(&$entity_info) {
  // Validate each entity if it can be indexed or not. Multiple callbacks are
  // allowed. If one of them returns false it won't be indexed
  $entity_info['node']['status callback'][] = 'apachesolr_index_node_status_callback';
}

p.s. it duplicate with this issue, but there no activity and it's very old.

1 Answer 1

0

You may want to follow this thread: Index unpublished nodes. There is no available patch right now but you'll find some hints to build your own custom module if you need to.

1
  • 1
    I saw that before. Unfochenatlly, it's not relevant for current version. Commented Nov 28, 2014 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.