It seemed like a good idea to extend the ability of faceted searches to non-published nodes.

Obviously this would be a feature used only by those who already have access to unpublished items, but this also makes faceted searches useful for site-admins / editors.
The additional functionality would only be available to user with the 'administer nodes' access.

Attached is my proposed patch.

-Patrick

Comments

david lesieur’s picture

The patch applies and works well.

The only issue I'm finding with this is that search.module does not indexes unpublished nodes (see function node_update_index()), so while unpublished nodes would be returned by guided searches, they would never appear in keyword search results. I wonder what to do with that inconsistency... I'd rather not patch node.module, but that looks like the only way, except of course if we choose to let this inconsistency happen.

david lesieur’s picture

Status: Needs review » Reviewed & tested by the community
david lesieur’s picture

Status: Reviewed & tested by the community » Fixed

Committed, with the addition of a setting for choosing whether we want unpublished nodes in search results.

The setting's default value avoids changing Faceted Search's current behavior, while its description is a good space for explaining that unpublished nodes are never indexed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.