If I have certain nodes marked as private, are they still indexed and searchable by the Search module?

Comments

deekayen’s picture

I think what happens is that denied nodes will still be listed in the search results with a short snippet (not the entire teaser), but when you click on the link it will be denied. I consider that more a bug in the search engine module that it doesn't respect the node_access table.

I wouldn't be surprised if someone has filed a bug about it and it was marked "wont' fix" because the built-in search engine just isn't robust enough to account for access permissions when displaying results without a headache of a patch. The same thing is likely the case with any of the other access modules (content access, nodeaccess, and simple access).

You can try it yourself, but I think that's what you'll find.

ggamba’s picture

Hello, my experience is: the content is indexed in any case. When a search is launched:

1) if the role of the user doing the research is allowed to see the content, search engine shows the result;

2) if the role of the user doing the research is not allowed to see the content, search engine shows no result.

Simpleaccess on previous version of my site (Drupal 4.7) worked the same way.

bye
Gabriele

cyu’s picture

Status: Active » Closed (fixed)