Robert Goene wrote:
[...]
Hi Robert, I had a look at your search code a month or two back. I like the incremental update of the index (as docs are edited, published, deactivated, ...), good stuff.

I was wondering if you had any ideas of how to index and serve "restricted documents". In 1.4, one can restrict access to a live version of a page by using the "AC Live" tab. How could we restrict access to the search result snippets (or exclude the result) for the results that the current user doesn't have access to view.


Hmm. Not sure. I will look into it...


Since we are reindexing documents as edits are made, workflow events are triggered, we could also reindex a doc (or group of docs) when permissions are changed. We could add search fields to the index for a doc that holds the users, groups, and ipranges that have visit role on the doc.

We could then use a filter in our search usecase to only get results that the current user has access to.

--Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to