I want to display unpublish nodes to some of the user roles.

The apachesolr by default index only publish nodes.

Is there a way of indexing unpublished nodes to the apache solr index?

  • From what I recall Solr indexes node that are visible for viewing by anonymous users by preparing the node for display and converting it to solr document, hence my impression is that your requirement might just not be easy without some arm twisting. Commented Feb 11, 2014 at 17:24
  • 1
    Did you find the solution for index unpublished nodes by apachesolr module? Commented Nov 27, 2014 at 16:10

1 Answer 1


By default, with the Search API, it indexes unpublished nodes unless you specify it not to. There is a patch to change the behaviour in the workflow tab of the search api: https://drupal.org/node/1507882

Can you please clarify your setup? Are you using the Search API?

  • no, I am using the apache solr search module
    – Ahmad
    Commented Feb 11, 2014 at 15:54

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.