Adds an option, which enables you to chose to index using the superadmin user instead of the anon user. The default case ( anon indexing ) is not changed of course. I think the motivation is clear, because for sites with a lot of permissions it counterfires the "access implementation" of solr. Instead of indexing everything and then use modify_query to alter the solr-search query that way, that it respects the user permissions, the anon indexing just takes care of "well only show what _everybody" can see and only index that - no matter what other users could search for.

I did not place the option on the administration page yet, just let me know were you think it fits best and i add it.

Comments

eugenmayer’s picture

StatusFileSize
new1.17 KB
jpmckinney’s picture

Version: 6.x-2.0-beta3 » 6.x-2.x-dev
eugenmayer’s picture

We might check if it fits this req: http://drupal.org/node/218104
It works in production for some time know. Everybody with taxonomy_access or any other grants module will need this switch, or he will e.g. see empty facets / no content indexed

jpmckinney’s picture

Title: Make an option for indexing using the superuser ( admin ) rather then the anon » Add an option to index as superuser (admin) instead of anonymous
Version: 6.x-2.x-dev » 7.x-1.x-dev
pwolanin’s picture

Status: Needs review » Needs work

why build the user object in code? why hard-code to uid 1?

nick_vh’s picture

StatusFileSize
new656 bytes

This might be a bit more generic?

nick_vh’s picture

Status: Needs work » Needs review
nick_vh’s picture

Title: Add an option to index as superuser (admin) instead of anonymous » Add an option to index as another user instead of only anonymous

Changing the title

nick_vh’s picture

Status: Needs review » Active

Just messing with the testbot

nick_vh’s picture

Status: Active » Needs review
pwolanin’s picture

Probably ok, but I suspect people will burn themselves with it.

nick_vh’s picture

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

Status: Reviewed & tested by the community » Fixed

Committed

nick_vh’s picture

Status: Fixed » Closed (fixed)
nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev

Committed this exact patch to 6.x-3.x

vivekkhurana’s picture

Version: 6.x-3.x-dev » 7.x-1.0-beta18

I dont see an admin option to select the user for indexing. Is it developed or yet to be developed ?